Skip to content

Commit 3d38da4

Browse files
committed
0.2.0 // Removed Generic.PHP.LowerCaseConstant, because we're going to use PSR standards.
1 parent 5d1e109 commit 3d38da4

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
22

3+
## 0.2.0
4+
* Removed `Generic.PHP.LowerCaseConstant`, because we're going to use PSR standards.
5+
36
## 0.1.0
47
* First release.

Inpsyde/ruleset.xml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<description>A custom set of code standard rules to check for Inpsyde Codex.</description>
55

66
<!-- TRUE, FALSE, NULL are constant, we write in uppercase. -->
7-
<rule ref="Generic.PHP.UpperCaseConstant" />
7+
<rule ref="Generic.PHP.UpperCaseConstant"/>
88

99
<!-- Allow . in hook names -->
1010
<rule ref="WordPress.NamingConventions.ValidHookName">
@@ -16,41 +16,40 @@
1616
<!-- Include the WordPress ruleset, with exclusions. -->
1717
<rule ref="WordPress">
1818

19-
<exclude name="WordPress.PHP.YodaConditions" />
19+
<exclude name="WordPress.PHP.YodaConditions"/>
2020

2121
<exclude name="WordPress.Files.FileName"/>
2222

23-
<exclude name="Generic.PHP.LowerCaseConstant" />
24-
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" />
25-
<exclude name="Generic.Commenting.DocComment.MissingShort" />
23+
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect"/>
24+
<exclude name="Generic.Commenting.DocComment.MissingShort"/>
2625
<exclude name="Generic.PHP.DisallowShortOpenTag"/>
2726

2827
<exclude name="Squiz.Commenting.FileComment.MissingPackageTag"/>
2928
<exclude name="Squiz.Commenting.FileComment.Missing"/>
3029

31-
<exclude name="PEAR.Functions.FunctionCallSignature" />
30+
<exclude name="PEAR.Functions.FunctionCallSignature"/>
3231

3332
<!-- Remove spaces before types check. -->
34-
<exclude name="Squiz.Commenting.VariableComment.VarIndent" />
35-
<exclude name="Squiz.Commenting.FunctionComment.SpacingBeforeParamType" />
36-
<exclude name="Squiz.Commenting.FunctionComment.SpacingBeforeParams" />
33+
<exclude name="Squiz.Commenting.VariableComment.VarIndent"/>
34+
<exclude name="Squiz.Commenting.FunctionComment.SpacingBeforeParamType"/>
35+
<exclude name="Squiz.Commenting.FunctionComment.SpacingBeforeParams"/>
3736

3837
<!-- Exclude Full Stops on inline comment. -->
39-
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
40-
<exclude name="Squiz.Commenting.FunctionComment.MissingParamComment" />
38+
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar"/>
39+
<exclude name="Squiz.Commenting.FunctionComment.MissingParamComment"/>
4140

4241
<!-- Remove empty line not required before block comment -->
43-
<exclude name="Squiz.Commenting.BlockComment.HasEmptyLineBefore" />
42+
<exclude name="Squiz.Commenting.BlockComment.HasEmptyLineBefore"/>
4443
<!-- Remove rule for /** style for each var -->
45-
<exclude name="Squiz.Commenting.VariableComment.WrongStyle" />
44+
<exclude name="Squiz.Commenting.VariableComment.WrongStyle"/>
4645

4746
<!-- <exclude name="WordPress.XSS.EscapeOutput" /> -->
48-
<exclude name="WordPress.WhiteSpace.ScopeIndent.Incorrect" />
49-
<exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions" />
50-
<exclude name="WordPress.Arrays.ArrayDeclaration.KeyNotAligned" />
47+
<exclude name="WordPress.WhiteSpace.ScopeIndent.Incorrect"/>
48+
<exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions"/>
49+
<exclude name="WordPress.Arrays.ArrayDeclaration.KeyNotAligned"/>
5150
<!-- Remove spaces instead of tabs check -->
52-
<exclude name="WordPress.Arrays.ArrayDeclaration.ValueNotAligned" />
53-
<exclude name="WordPress.Arrays.ArrayDeclaration.CloseBraceNotAligned" />
51+
<exclude name="WordPress.Arrays.ArrayDeclaration.ValueNotAligned"/>
52+
<exclude name="WordPress.Arrays.ArrayDeclaration.CloseBraceNotAligned"/>
5453
<!-- <exclude name="WordPress.Variables.GlobalVariables" /> -->
5554
</rule>
5655

0 commit comments

Comments
 (0)