Skip to content

Commit f307928

Browse files
committed
The Squiz standard has increased the max padding for statement alignment from 12 to 20
1 parent e4d9d22 commit f307928

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CodeSniffer/Standards/Squiz/ruleset.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
</properties>
4343
</rule>
4444

45-
<!-- Have 12 chars padding maximum and always show as errors -->
45+
<!-- Have 20 chars padding maximum and always show as errors -->
4646
<rule ref="Generic.Formatting.MultipleStatementAlignment">
4747
<properties>
48-
<property name="maxPadding" value="12"/>
48+
<property name="maxPadding" value="20"/>
4949
<property name="error" value="true"/>
5050
</properties>
5151
</rule>
@@ -73,4 +73,4 @@
7373
</properties>
7474
</rule>
7575

76-
</ruleset>
76+
</ruleset>

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
3737
-- Default remains FALSE, so newlines are not allowed
3838
-- Override the "ignoreNewlines" setting in a ruleset.xml file to change
3939
- Squiz InlineCommentSniff no longer checks the last char of a comment if the first char is not a letter (request #505)
40+
- The Squiz standard has increased the max padding for statement alignment from 12 to 20
4041
- Fixed bug #479 : Yielded values are not recognised as returned values in Squiz FunctionComment sniff
4142
- Fixed bug #512 : Endless loop whilst parsing mixture of control structure styles
4243
- Fixed bug #515 : Spaces in JS block incorrectly flagged as indentation error

0 commit comments

Comments
 (0)