File tree 3 files changed +13
-17
lines changed
3 files changed +13
-17
lines changed Original file line number Diff line number Diff line change 17
17
<!-- *** PSR2 *** -->
18
18
<!-- ************** -->
19
19
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 >
22
24
23
25
<!-- Override SuperfluousWhitespace to not ignore blank lines -->
24
26
<rule ref =" Squiz.WhiteSpace.SuperfluousWhitespace" >
Original file line number Diff line number Diff line change 3
3
4
4
We imported the [ PSR2 Standard] ( ./standards/psr2.md ) with these overrides:
5
5
6
+ - There is not line length limit
7
+
8
+ ```
9
+ <exclude ref="Generic.Files.LineLength">
10
+ ```
11
+
6
12
- There MUST NOT be trailing whitespace at the end of blank lines
7
13
8
14
```
@@ -41,7 +47,7 @@ we do not respect this rule:
41
47
42
48
## Others
43
49
### Imported
44
- - Do not use ` <? ` to define a php file
50
+ - Do not use ` <? ` to define a PHP file
45
51
46
52
```
47
53
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
@@ -110,7 +116,7 @@ we do not respect this rule:
110
116
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
111
117
```
112
118
113
- - Do not use empty php statement
119
+ - Do not use empty PHP statement
114
120
115
121
```
116
122
<rule ref="Generic.CodeAnalysis.EmptyPHPStatement"/>
Original file line number Diff line number Diff line change 71
71
<rule ref="PSR2.Files.ClosingTag"/>
72
72
```
73
73
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
-
86
74
- There MUST NOT be trailing whitespace at the end of non-blank lines.
87
75
88
76
```
89
77
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
90
78
<properties>
91
- <property name="ignoreBlankLines" value="true"/>
79
+ <property name="ignoreBlankLines" value="true"/>
92
80
</properties>
93
81
</rule>
94
82
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.StartFile">
You can’t perform that action at this time.
0 commit comments