Skip to content

Commit 1febf4e

Browse files
committed
Remove phpcsdevcs because it does not support phpcs 4
1 parent 624ffb7 commit 1febf4e

File tree

2 files changed

+9
-17
lines changed

2 files changed

+9
-17
lines changed

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
},
5656
"require-dev": {
5757
"phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.5 || ^7.0 || ^8.0 || ^9.0 || ^10.5.32 || ^11.3.3 || ^12.0",
58-
"phpcsstandards/phpcsdevcs": "^1.1",
5958
"phpstan/phpstan": "^1.7 || ^2.0",
6059
"dealerdirect/phpcodesniffer-composer-installer": "^0.7 || ^1.0",
6160
"vimeo/psalm": "^0.2 || ^0.3 || ^1.1 || ^4.24 || ^5.0 || ^6.0 || ^7.0"

phpcs.xml.dist

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,33 +30,26 @@
3030

3131
<!--
3232
#############################################################################
33-
USE THE PHPCSDev, VariableAnalysis RULESETS
33+
USE THE PSR12, VariableAnalysis RULESETS
3434
#############################################################################
3535
-->
3636

3737
<!-- Set minimum PHP version supported to PHP 5.4. -->
3838
<config name="testVersion" value="5.4-"/>
3939

40-
<rule ref="PHPCSDev">
40+
<rule ref="PSR12">
4141
<!-- This code base uses tab indentation instead of spaces. -->
4242
<exclude name="Generic.WhiteSpace.DisallowTabIndent"/>
4343

44-
<!-- Don't enforce lining up the assignment operators in assignment blocks. -->
45-
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning"/>
46-
47-
<!-- Don't enforce lining up the double arrows in array declarations.
48-
Possibly enforce this later once the sniff has been replaced by a better, more configurable version. -->
49-
<exclude name="Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned"/>
50-
51-
<!-- Don't enforce documentation (yet). -->
52-
<exclude name="Generic.Commenting.DocComment"/>
53-
<exclude name="PEAR.Commenting.ClassComment"/>
54-
<exclude name="PEAR.Commenting.FileComment"/>
55-
<exclude name="PEAR.Commenting.InlineComment"/>
56-
5744
<!-- WIP: This is part of PSR12 and should probably be enforced,
5845
but the codebase needs work before it can be enabled. -->
59-
<exclude name="Generic.Files.LineLength.TooLong" />
46+
<exclude name="Generic.Files.LineLength"/>
47+
48+
<!-- Disable excessive function spacing requirements -->
49+
<exclude name="Squiz.WhiteSpace.FunctionSpacing"/>
50+
51+
<!-- Project supports PHP 5.4+ which doesn't have constant visibility -->
52+
<exclude name="PSR12.Properties.ConstantVisibility"/>
6053
</rule>
6154

6255
<rule ref="VariableAnalysis"/>

0 commit comments

Comments
 (0)