Skip to content

Commit b92d6fe

Browse files
✨ Remove line length limit
1 parent c3ead8a commit b92d6fe

File tree

3 files changed

+13
-17
lines changed

3 files changed

+13
-17
lines changed

SymfonyCustom/ruleset.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
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">

docs/standards.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
We 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"/>

docs/standards/psr2.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,24 +71,12 @@
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">

0 commit comments

Comments
 (0)