Skip to content
Snippets Groups Projects
Commit 13d3601d authored by Camille Simiand's avatar Camille Simiand
Browse files

Update composer scripts

in order to:
- run phpcs instead of php-cs-fixer in ci

update .gitignore
parent 3ff460c2
No related branches found
No related tags found
1 merge request!11Add PHP_CodeSniffer dependency
...@@ -28,4 +28,5 @@ yarn-error.log ...@@ -28,4 +28,5 @@ yarn-error.log
###> squizlabs/php_codesniffer ### ###> squizlabs/php_codesniffer ###
/.phpcs-cache /.phpcs-cache
/phpcs.xml /phpcs.xml
./.php-cs-fixer.cache
###< squizlabs/php_codesniffer ### ###< squizlabs/php_codesniffer ###
...@@ -101,11 +101,12 @@ ...@@ -101,11 +101,12 @@
"@auto-scripts" "@auto-scripts"
], ],
"ci": [ "ci": [
"@php-cs-fixer", "@php_codesniffer",
"@phpstan", "@phpstan",
"@unit-tests" "@unit-tests"
], ],
"php-cs-fixer": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix src/", "php-cs-fixer": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix src/",
"php_codesniffer": "php ./vendor/bin/phpcs",
"phpstan": "vendor/bin/phpstan analyse src/", "phpstan": "vendor/bin/phpstan analyse src/",
"unit-tests": "php ./vendor/bin/phpunit" "unit-tests": "php ./vendor/bin/phpunit"
}, },
......
<?xml version="1.0" encoding="UTF-8"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<arg name="basepath" value="."/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<rule ref="PSR12"/>
<file>bin/</file>
<file>config/</file>
<file>public/</file>
<file>src/</file>
<file>tests/</file>
</ruleset>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment