Skip to content

Commit fc3f399

Browse files
committed
Add different "Generic" and "Squiz" rules
Mostly common sense, text case checking...
1 parent c9875ea commit fc3f399

File tree

1 file changed

+27
-11
lines changed

1 file changed

+27
-11
lines changed

Inpsyde/ruleset.xml

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,33 @@
7878
</rule>
7979

8080
<!--
81-
Generic and common sense sanity.
81+
Generic
8282
-->
83-
<rule ref="Squiz.PHP.Eval"/>
84-
85-
<!--
86-
No commented-out code, please. Let version control do its job.
87-
-->
88-
<rule ref="Squiz.PHP.CommentedOutCode">
89-
<properties>
90-
<property name="maxPercentage" value="45"/>
91-
</properties>
92-
</rule>
83+
<rule ref="Generic.Metrics.CyclomaticComplexity">
84+
<properties>
85+
<property name="absoluteComplexity" value="50"/>
86+
</properties>
87+
</rule>
88+
<rule ref="Generic.Metrics.NestingLevel">
89+
<properties>
90+
<property name="nestingLevel" value="2"/>
91+
<property name="absoluteNestingLevel" value="4"/>
92+
</properties>
93+
</rule>
94+
<rule ref="Generic.NamingConventions.ConstructorName"/>
95+
<rule ref="Generic.PHP.CharacterBeforePHPOpeningTag"/>
96+
<rule ref="Generic.PHP.LowerCaseConstant"/>
97+
<rule ref="Squiz.Classes.LowercaseClassKeywords"/>
98+
<rule ref="Squiz.PHP.CommentedOutCode">
99+
<properties>
100+
<property name="maxPercentage" value="45"/>
101+
</properties>
102+
</rule>
103+
<rule ref="Squiz.PHP.Eval"/>
104+
<rule ref="Squiz.PHP.InnerFunctions"/>
105+
<rule ref="Squiz.PHP.LowercasePHPFunctions"/>
106+
<rule ref="Squiz.PHP.NonExecutableCode"/>
107+
<rule ref="Squiz.Scope.MemberVarScope"/>
108+
<rule ref="Squiz.Scope.StaticThisUsage"/>
93109

94110
</ruleset>

0 commit comments

Comments
 (0)