File tree Expand file tree Collapse file tree 3 files changed +224
-77
lines changed
Expand file tree Collapse file tree 3 files changed +224
-77
lines changed Original file line number Diff line number Diff line change @@ -16,3 +16,4 @@ install:
1616
1717script :
1818 - vendor/bin/phpunit
19+ - vendor/bin/phpcs src -s
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" ?>
2+ <ruleset name =" Gazelle Standard" >
3+ <description >The coding standard for the Gazelle project</description >
4+
5+ <!-- Include the whole PSR-1 standard -->
6+ <rule ref =" PSR1" />
7+ <!-- Include the whole PSR-2 standard -->
8+ <rule ref =" PSR2" >
9+ <exclude name =" PSR2.Classes.ClassDeclaration.OpenBraceNewLine" />
10+ </rule >
11+
12+ <!-- Do not allow trailing whitespace at the end of lines -->
13+ <rule ref =" Squiz.WhiteSpace.SuperfluousWhitespace" />
14+ <rule ref =" Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine" >
15+ <severity >0</severity >
16+ </rule >
17+ <rule ref =" Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace" >
18+ <severity >0</severity >
19+ </rule >
20+
21+ <rule ref =" Generic.Classes.OpeningBraceSameLine" />
22+ <rule ref =" Generic.Functions.OpeningFunctionBraceKernighanRitchie" />
23+
24+ <!-- Ensure that proper line endings are used -->
25+ <rule ref =" Generic.Files.LineEndings" >
26+ <properties >
27+ <property name =" eolChar" value =" \n" />
28+ </properties >
29+ </rule >
30+
31+ <!-- Increase PHPCS/PEAR limit of 85 chars per line to 100 -->
32+ <rule ref =" Generic.Files.LineLength" >
33+ <properties >
34+ <property name =" lineLimit" value =" 100" />
35+ <property name =" absoluteLineLimit" value =" 0" />
36+ </properties >
37+ </rule >
38+ </ruleset >
You can’t perform that action at this time.
0 commit comments