Skip to content

Commit 7dd4af8

Browse files
committed
Removed few NeutronStandard rules
- `NeutronStandard.Conditions.DisallowConditionAssignWithoutConditional`. - `NeutronStandard.MagicMethods.DisallowMagicGet` - `NeutronStandard.MagicMethods.DisallowMagicSet`
1 parent 563e67f commit 7dd4af8

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

Inpsyde/ruleset.xml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,18 @@
3535
Neutron standard are quality tools for PHP7 development from Automattic.
3636
See https://github.com/Automattic/phpcs-neutron-standard
3737
-->
38-
<rule ref="NeutronStandard">
39-
<exclude name="NeutronStandard.Functions.LongFunction"/>
40-
<exclude name="NeutronStandard.Functions.VariableFunctions"/>
41-
<exclude name="NeutronStandard.Functions.TypeHint"/>
42-
<exclude name="NeutronStandard.Constants.DisallowDefine"/>
43-
</rule>
38+
<rule ref="NeutronStandard">
39+
<exclude name="NeutronStandard.Functions.LongFunction"/>
40+
<exclude name="NeutronStandard.Functions.VariableFunctions"/>
41+
<exclude name="NeutronStandard.Functions.TypeHint"/>
42+
<exclude name="NeutronStandard.Conditions.DisallowConditionAssignWithoutConditional"/>
43+
<exclude name="NeutronStandard.Constants.DisallowDefine"/>
44+
<exclude name="NeutronStandard.MagicMethods.DisallowMagicGet"/>
45+
<exclude name="NeutronStandard.MagicMethods.DisallowMagicSet"/>
46+
<rule ref="NeutronStandard.Whitespace.DisallowMultipleNewlines.MultipleNewlines">
47+
<type>warning</type>
48+
</rule>
49+
</rule>
4450

4551
<!--
4652
Some WordPress specific rules.

phpcs.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,13 @@
4343
<exclude name="NeutronStandard.Functions.LongFunction"/>
4444
<exclude name="NeutronStandard.Functions.VariableFunctions"/>
4545
<exclude name="NeutronStandard.Functions.TypeHint"/>
46+
<exclude name="NeutronStandard.Conditions.DisallowConditionAssignWithoutConditional"/>
4647
<exclude name="NeutronStandard.Constants.DisallowDefine"/>
48+
<exclude name="NeutronStandard.MagicMethods.DisallowMagicGet"/>
49+
<exclude name="NeutronStandard.MagicMethods.DisallowMagicSet"/>
50+
<rule ref="NeutronStandard.Whitespace.DisallowMultipleNewlines.MultipleNewlines">
51+
<type>warning</type>
52+
</rule>
4753
</rule>
4854

4955
<!--

0 commit comments

Comments
 (0)