Skip to content

Commit

Permalink
Remove now-unnecessary upgrade of warning to error
Browse files Browse the repository at this point in the history
  • Loading branch information
fredden committed Dec 4, 2023
1 parent cea16a6 commit 1a54c58
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
<arg name="parallel" value="75"/>
<arg value="p"/>

<!-- Don't hide tokenizer exceptions -->
<rule ref="Internal.Tokenizer.Exception">
<type>error</type>
</rule>

<!-- Include the whole PEAR standard -->
<rule ref="PEAR">
<exclude name="PEAR.NamingConventions.ValidFunctionName"/>
Expand Down Expand Up @@ -77,13 +72,6 @@
<rule ref="PSR12.Files.OpenTag"/>
<rule ref="Zend.Files.ClosingTag"/>

<!-- PEAR uses warnings for inline control structures, so switch back to errors -->
<rule ref="Generic.ControlStructures.InlineControlStructure">
<properties>
<property name="error" value="true"/>
</properties>
</rule>

<!-- We use custom indent rules for arrays -->
<rule ref="Generic.Arrays.ArrayIndent"/>
<rule ref="Squiz.Arrays.ArrayDeclaration.KeyNotAligned">
Expand Down Expand Up @@ -112,11 +100,10 @@
</properties>
</rule>

<!-- Have 12 chars padding maximum and always show as errors -->
<!-- Have 12 chars padding maximum -->
<rule ref="Generic.Formatting.MultipleStatementAlignment">
<properties>
<property name="maxPadding" value="12"/>
<property name="error" value="true"/>
</properties>
</rule>

Expand All @@ -133,20 +120,8 @@
</properties>
</rule>

<!-- Private methods MUST not be prefixed with an underscore -->
<rule ref="PSR2.Methods.MethodDeclaration.Underscore">
<type>error</type>
</rule>

<!-- Private properties MUST not be prefixed with an underscore -->
<rule ref="PSR2.Classes.PropertyDeclaration.Underscore">
<type>error</type>
</rule>

<!-- Do not allow unreachable code. -->
<rule ref="Squiz.PHP.NonExecutableCode">
<type>error</type>
</rule>
<rule ref="Squiz.PHP.NonExecutableCode"/>

<!-- The testing bootstrap file uses string concats to stop IDEs seeing the class aliases -->
<rule ref="Generic.Strings.UnnecessaryStringConcat">
Expand Down

0 comments on commit 1a54c58

Please sign in to comment.