File tree Expand file tree Collapse file tree 3 files changed +13
-17
lines changed Expand file tree Collapse file tree 3 files changed +13
-17
lines changed Original file line number Diff line number Diff line change 1717 <!-- *** PSR2 *** -->
1818 <!-- ************** -->
1919
20- <!-- Include the whole PSR-2 (so PSR-1) standard -->
21- <rule ref =" PSR2" />
20+ <!-- Include the whole PSR-2 (so PSR-1) standard without the file length limit -->
21+ <rule ref =" PSR2" >
22+ <exclude name =" Generic.Files.LineLength" />
23+ </rule >
2224
2325 <!-- Override SuperfluousWhitespace to not ignore blank lines -->
2426 <rule ref =" Squiz.WhiteSpace.SuperfluousWhitespace" >
Original file line number Diff line number Diff line change 33
44We imported the [ PSR2 Standard] ( ./standards/psr2.md ) with these overrides:
55
6+ - There is not line length limit
7+
8+ ```
9+ <exclude ref="Generic.Files.LineLength">
10+ ```
11+
612- There MUST NOT be trailing whitespace at the end of blank lines
713
814```
@@ -41,7 +47,7 @@ we do not respect this rule:
4147
4248## Others
4349### Imported
44- - Do not use ` <? ` to define a php file
50+ - Do not use ` <? ` to define a PHP file
4551
4652```
4753<rule ref="Generic.PHP.DisallowShortOpenTag"/>
@@ -110,7 +116,7 @@ we do not respect this rule:
110116<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
111117```
112118
113- - Do not use empty php statement
119+ - Do not use empty PHP statement
114120
115121```
116122<rule ref="Generic.CodeAnalysis.EmptyPHPStatement"/>
Original file line number Diff line number Diff line change 7171<rule ref="PSR2.Files.ClosingTag"/>
7272```
7373
74- - The soft limit on line length MUST be 120 characters;
75- automated style checkers MUST warn but MUST NOT error at the soft limit.
76-
77- ```
78- <rule ref="Generic.Files.LineLength">
79- <properties>
80- <property name="lineLimit" value="120"/>
81- <property name="absoluteLineLimit" value="0"/>
82- </properties>
83- </rule>
84- ```
85-
8674- There MUST NOT be trailing whitespace at the end of non-blank lines.
8775
8876```
8977<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
9078 <properties>
91- <property name="ignoreBlankLines" value="true"/>
79+ <property name="ignoreBlankLines" value="true"/>
9280 </properties>
9381</rule>
9482<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.StartFile">
You can’t perform that action at this time.
0 commit comments