-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from phpcfdi/version-3.0.1
Fix Psalm issues and maintenance (Version 3.0.1)
- Loading branch information
Showing
7 changed files
with
91 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phive xmlns="https://phar.io/phive"> | ||
<phar name="phpcs" version="^3.8.1" installed="3.8.1" location="./tools/phpcs" copy="false"/> | ||
<phar name="phpcbf" version="^3.8.1" installed="3.8.1" location="./tools/phpcbf" copy="false"/> | ||
<phar name="php-cs-fixer" version="^3.48.0" installed="3.48.0" location="./tools/php-cs-fixer" copy="false"/> | ||
<phar name="phpstan" version="^1.10.56" installed="1.10.56" location="./tools/phpstan" copy="false"/> | ||
<phar name="psalm" version="^5.20.0" installed="5.20.0" location="./tools/psalm" copy="false"/> | ||
<phar name="phpcs" version="^3.9.2" installed="3.9.2" location="./tools/phpcs" copy="false"/> | ||
<phar name="phpcbf" version="^3.9.2" installed="3.9.2" location="./tools/phpcbf" copy="false"/> | ||
<phar name="php-cs-fixer" version="^3.57.1" installed="3.57.1" location="./tools/php-cs-fixer" copy="false"/> | ||
<phar name="phpstan" version="^1.11.1" installed="1.11.1" location="./tools/phpstan" copy="false"/> | ||
<phar name="psalm" version="^5.24.0" installed="5.24.0" location="./tools/psalm" copy="false"/> | ||
<phar name="composer-normalize" version="^2.42.0" installed="2.42.0" location="./tools/composer-normalize" copy="false"/> | ||
</phive> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,32 @@ | ||
{ | ||
"name": "phpcfdi/resources-sat-xml-generator", | ||
"description": "Generates XSD and XSLT from SAT", | ||
"keywords": ["mexico", "sat"], | ||
"homepage": "https://github.com/phpcfdi/resources-sat-xml-generator", | ||
"license": "MIT", | ||
"keywords": [ | ||
"mexico", | ||
"sat" | ||
], | ||
"authors": [ | ||
{ | ||
"name": "Carlos C Soto", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"homepage": "https://github.com/phpcfdi/resources-sat-xml-generator", | ||
"support": { | ||
"source": "https://github.com/phpcfdi/resources-sat-xml-generator", | ||
"issues": "https://github.com/phpcfdi/resources-sat-xml-generator/issues" | ||
"issues": "https://github.com/phpcfdi/resources-sat-xml-generator/issues", | ||
"source": "https://github.com/phpcfdi/resources-sat-xml-generator" | ||
}, | ||
"require": { | ||
"php": ">=8.3", | ||
"ext-json": "*", | ||
"eclipxe/xmlresourceretriever": "^2.0.1", | ||
"symfony/http-client": "^7.0", | ||
"symfony/console": "^7.0" | ||
"symfony/console": "^7.0", | ||
"symfony/http-client": "^7.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^10.5", | ||
"fakerphp/faker": "^1.17", | ||
"phpunit/phpunit": "^11.1.3", | ||
"symfony/finder": "^7.0" | ||
}, | ||
"autoload": { | ||
|
@@ -37,12 +40,20 @@ | |
} | ||
}, | ||
"scripts": { | ||
"dev:build": ["@dev:fix-style", "@dev:test"], | ||
"dev:build": [ | ||
"@dev:fix-style", | ||
"@dev:test" | ||
], | ||
"dev:check-style": [ | ||
"@php tools/composer-normalize normalize --dry-run", | ||
"@php tools/php-cs-fixer fix --dry-run --verbose", | ||
"@php tools/phpcs --colors -sp" | ||
], | ||
"dev:coverage": [ | ||
"@php -dzend_extension=xdebug.so -dxdebug.mode=coverage vendor/bin/phpunit --coverage-html build/coverage/html/" | ||
], | ||
"dev:fix-style": [ | ||
"@php tools/composer-normalize normalize", | ||
"@php tools/php-cs-fixer fix --verbose", | ||
"@php tools/phpcbf --colors -sp" | ||
], | ||
|
@@ -51,16 +62,13 @@ | |
"@php vendor/bin/phpunit --testdox --stop-on-failure", | ||
"@php tools/phpstan analyse --no-progress", | ||
"@php tools/psalm --no-progress" | ||
], | ||
"dev:coverage": [ | ||
"@php -dzend_extension=xdebug.so -dxdebug.mode=coverage vendor/bin/phpunit --coverage-html build/coverage/html/" | ||
] | ||
}, | ||
"scripts-descriptions": { | ||
"dev:build": "DEV: run dev:fix-style and dev:tests, run before pull request", | ||
"dev:check-style": "DEV: search for code style errors using php-cs-fixer and phpcs", | ||
"dev:fix-style": "DEV: fix code style errors using php-cs-fixer and phpcbf", | ||
"dev:test": "DEV: run dev:check-style, phpunit, phpstan and psalm", | ||
"dev:coverage": "DEV: run phpunit with xdebug and storage coverage in build/coverage/html/" | ||
"dev:check-style": "DEV: search for code style errors using composer-normalize, php-cs-fixer and phpcs", | ||
"dev:coverage": "DEV: run phpunit with xdebug and storage coverage in build/coverage/html/", | ||
"dev:fix-style": "DEV: fix code style errors using composer-normalize, php-cs-fixer and phpcbf", | ||
"dev:test": "DEV: run dev:check-style, phpunit, phpstan and psalm" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
<?xml version="1.0"?> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" | ||
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" | ||
cacheDirectory="build/phpunit" | ||
bootstrap="tests/bootstrap.php" | ||
colors="true" | ||
bootstrap="./tests/bootstrap.php" | ||
cacheResultFile="build/phpunit.result.cache"> | ||
displayDetailsOnIncompleteTests="true" | ||
displayDetailsOnSkippedTests="true" | ||
displayDetailsOnTestsThatTriggerDeprecations="true" | ||
displayDetailsOnTestsThatTriggerNotices="true" | ||
displayDetailsOnTestsThatTriggerWarnings="true" | ||
displayDetailsOnTestsThatTriggerErrors="true" | ||
> | ||
<testsuites> | ||
<testsuite name="Default"> | ||
<directory>./tests/</directory> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<source> | ||
<include> | ||
<directory suffix=".php">./src/</directory> | ||
<directory>src</directory> | ||
</include> | ||
</source> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters