Skip to content

Commit a7c7f97

Browse files
authored
[TASK] Drop PHP_CodeSniffer (#1253)
This tool is not well-maintained anymore, and it has no PER2 coding standard, which is a blocker for us moving to PER2. PHP-CS-Fixer already has a PER2 coding standard. If we use PHP-CS-Fixer on PER2 and PHP_CodeSniffer on PSR12 (the latest available standard there), both tools would keep overwriting each other's changes endlessly, and they would never agree on the correct formatting.
1 parent 24be92d commit a7c7f97

File tree

5 files changed

+1
-158
lines changed

5 files changed

+1
-158
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
/.phive/ export-ignore
66
/CODE_OF_CONDUCT.md export-ignore
77
/config/ export-ignore
8-
/phpcs.xml export-ignore
98
/phpunit.xml export-ignore
109
/psalm.baseline.xml export-ignore
1110
/psalm.xml export-ignore

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ jobs:
126126
- fixer
127127
- md
128128
- psalm
129-
- sniff
130129
php-version:
131130
- '8.2'
132131

@@ -159,7 +158,7 @@ jobs:
159158
run: composer install --no-progress
160159

161160
- name: Install development tools
162-
run: phive --no-progress install --trust-gpg-keys 0FDE18AE1D09E19F60F6B1CBC00543248C87FB13,BBAB5DF0A0D6672989CF1869E82B2FB314E9906E,A972B9ABB95D0B760B51442231C7E470E2138192,9882DD2B38813C08EA651B69A4E55EA12C7C085C,2DE50EB60C013FFFA831040D12CE0F1D262429A5
161+
run: phive --no-progress install --trust-gpg-keys 0FDE18AE1D09E19F60F6B1CBC00543248C87FB13,BBAB5DF0A0D6672989CF1869E82B2FB314E9906E,9882DD2B38813C08EA651B69A4E55EA12C7C085C,2DE50EB60C013FFFA831040D12CE0F1D262429A5
163162

164163
- name: Run Command
165164
run: composer ci:php:${{ matrix.command }}

.phive/phars.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<phive xmlns="https://phar.io/phive">
33
<phar name="composer-normalize" version="^2.36.0" installed="2.36.0" location="./.phive/composer-normalize" copy="false"/>
44
<phar name="php-cs-fixer" version="^3.26.1" installed="3.26.1" location="./.phive/php-cs-fixer" copy="false"/>
5-
<phar name="phpcs" version="^3.7.2" installed="3.7.2" location="./.phive/phpcs" copy="false"/>
65
<phar name="phpmd" version="^2.13.0" installed="2.13.0" location="./.phive/phpmd" copy="false"/>
76
<phar name="psalm" version="^5.15.0" installed="5.15.0" location="./.phive/psalm" copy="false"/>
87
</phive>

composer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,9 @@
8383
"ci:php:lint": "\"./vendor/bin/parallel-lint\" config src tests",
8484
"ci:php:md": "\"./.phive/phpmd\" src text config/phpmd.xml",
8585
"ci:php:psalm": "\"./.phive/psalm\" --show-info=false",
86-
"ci:php:sniff": "\"./.phive/phpcs\" config src tests",
8786
"ci:static": [
8887
"@ci:composer:normalize",
8988
"@ci:php:lint",
90-
"@ci:php:sniff",
9189
"@ci:php:fixer",
9290
"@ci:php:md",
9391
"@ci:php:psalm"
@@ -111,7 +109,6 @@
111109
"ci:php:lint": "Lints the PHP files for syntax errors.",
112110
"ci:php:md": "Checks the code complexity with PHPMD.",
113111
"ci:php:psalm": "Checks the types with Psalm.",
114-
"ci:php:sniff": "Checks the code style with PHP_CodeSniffer.",
115112
"ci:static": "Runs all static code analysis checks for the code and the composer.json.",
116113
"ci:tests": "Runs all dynamic tests (i.e., currently, the unit tests).",
117114
"ci:tests:sof": "Runs the unit tests and stops at the first failure.",

phpcs.xml

Lines changed: 0 additions & 151 deletions
This file was deleted.

0 commit comments

Comments
 (0)