Skip to content

Commit 776407e

Browse files
authored
[TASK] Reduce the PHP_CodeSniffer ruleset (#2182)
Nowadays, PHP-CS-Fixer covers most of our code style checking needs. So we should only have those rules in the PHP_CodeSniffer configuration that are not covered by PHP-CS-Fixer. This gets rid of the hassle of resolving rule conflicts between the two tools. Also fix some copy'n'paste in the ruleset name. Fixes #2104
1 parent 2738862 commit 776407e

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

phpcs.xml.dist

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<ruleset name="phpList Coding Standard">
3-
<description>
4-
This standard requires PHP_CodeSniffer >= 3.5.2.
5-
</description>
6-
2+
<ruleset name="oliverklee.de">
73
<arg name="colors"/>
84
<arg name="extensions" value="php"/>
95

10-
<!-- The complete PSR-12 ruleset -->
11-
<rule ref="PSR12"/>
6+
<rule ref="Generic.Files.LineLength">
7+
<properties>
8+
<property name="lineLimit" value="120"/>
9+
<property name="absoluteLineLimit" value="120"/>
10+
</properties>
11+
</rule>
12+
<rule ref="Squiz.PHP.Heredoc"/>
1213
</ruleset>

0 commit comments

Comments
 (0)