|
23 | 23 | </properties>
|
24 | 24 | </rule>
|
25 | 25 |
|
| 26 | + <rule ref="PSR12.ControlStructures.BooleanOperatorPlacement"> |
| 27 | + <properties> |
| 28 | + <!-- Only allow them at the start of the line. --> |
| 29 | + <property name="allowOnly" value="first"/> |
| 30 | + </properties> |
| 31 | + </rule> |
| 32 | + |
26 | 33 |
|
27 | 34 | <!--
|
28 | 35 | #############################################################################
|
29 | 36 | MISCELLANEOUS ADDITIONAL RULES
|
30 | 37 | #############################################################################
|
31 | 38 | -->
|
32 | 39 |
|
| 40 | + <rule ref="Generic.Arrays.ArrayIndent"/> |
| 41 | + |
33 | 42 | <rule ref="Generic.CodeAnalysis.EmptyStatement"/>
|
| 43 | + <rule ref="Generic.CodeAnalysis.EmptyPHPStatement"/> |
| 44 | + <rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/> |
| 45 | + <rule ref="Generic.CodeAnalysis.JumbledIncrementer"/> |
| 46 | + <rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/> |
| 47 | + <rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/> |
34 | 48 | <rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>
|
35 | 49 |
|
| 50 | + <rule ref="Generic.ControlStructures.DisallowYodaConditions"/> |
| 51 | + |
36 | 52 | <rule ref="Generic.Formatting.SpaceAfterCast"/>
|
37 | 53 |
|
38 | 54 | <rule ref="Generic.Metrics.CyclomaticComplexity"/>
|
39 | 55 | <rule ref="Generic.Metrics.NestingLevel"/>
|
40 | 56 |
|
41 | 57 | <rule ref="Generic.NamingConventions.ConstructorName"/>
|
42 | 58 |
|
| 59 | + <rule ref="Generic.PHP.ForbiddenFunctions"/> |
43 | 60 | <rule ref="Generic.PHP.NoSilencedErrors"/>
|
44 | 61 |
|
45 | 62 | <rule ref="Generic.Strings.UnnecessaryStringConcat"/>
|
|
52 | 69 | <rule ref="Squiz.PHP.LowercasePHPFunctions"/>
|
53 | 70 | <rule ref="Squiz.PHP.NonExecutableCode"/>
|
54 | 71 |
|
| 72 | + <rule ref="Squiz.WhiteSpace.SemicolonSpacing"/> |
| 73 | + |
55 | 74 | </ruleset>
|
0 commit comments