Skip to content

Commit

Permalink
[TASK] Move PHP_CodeSniffer to PHIVE (#975)
Browse files Browse the repository at this point in the history
This moves us one step further away from PHP dependency hell.

Closes #822
  • Loading branch information
oliverklee authored Apr 6, 2021
1 parent c2bea9e commit 7477f03
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
},
"require-dev": {
"php-parallel-lint/php-parallel-lint": "^1.2.0",
"rawr/cross-data-providers": "^2.3.0",
"squizlabs/php_codesniffer": "^3.5.8"
"rawr/cross-data-providers": "^2.3.0"
},
"autoload": {
"psr-4": {
Expand All @@ -68,7 +67,7 @@
"php:version": "php -v | grep -Po 'PHP\\s++\\K(?:\\d++\\.)*+\\d++(?:-\\w++)?+'",
"php:fix": "\"./tools/php-cs-fixer.phar\" --config=config/php-cs-fixer.php fix config/ src/ tests/",
"ci:php:lint": "\"vendor/bin/parallel-lint\" config src tests",
"ci:php:sniff": "\"vendor/bin/phpcs\" config src tests",
"ci:php:sniff": "\"./tools/phpcs.phar\" config src tests",
"ci:php:fixer": "\"./tools/php-cs-fixer.phar\" --config=config/php-cs-fixer.php fix --dry-run -v --show-progress=dots --diff-format=udiff config/ src/ tests/",
"ci:php:md": "\"./tools/phpmd.phar\" src text config/phpmd.xml",
"ci:php:psalm": "\"./tools/psalm.phar\" --show-info=false",
Expand Down
1 change: 1 addition & 0 deletions phive.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="phar-io/phive" version="^0.14.4" installed="0.14.4" location="./tools/phive.phar" copy="true"/>
<phar name="phpcs" version="^3.5.8" installed="3.5.8" location="./tools/phpcs.phar" copy="true"/>
<phar name="php-cs-fixer" version="^2.16.7" installed="2.16.7" location="./tools/php-cs-fixer.phar" copy="true"/>
<phar name="phpmd" version="^2.9.1" installed="2.9.1" location="./tools/phpmd.phar" copy="true"/>
<phar name="phpunit" version="^8.5.15 || ^9.5.4" installed="8.5.15" location="./tools/phpunit.phar" copy="true"/>
Expand Down
Binary file added tools/phpcs.phar
Binary file not shown.

0 comments on commit 7477f03

Please sign in to comment.