Skip to content
Snippets Groups Projects
Verified Commit e5ce79b7 authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

feat: decrease severity for noisy sniffs

parent 106712f7
Branches
Tags
No related merge requests found
...@@ -45,6 +45,24 @@ ...@@ -45,6 +45,24 @@
<!-- Since WPCS 3.0 exceptions are treated as output and requires escaping. We don't want that... --> <!-- Since WPCS 3.0 exceptions are treated as output and requires escaping. We don't want that... -->
<exclude name="WordPress.Security.EscapeOutput.ExceptionNotEscaped" /> <exclude name="WordPress.Security.EscapeOutput.ExceptionNotEscaped" />
<!-- $default parameter sometimes just make sense. -->
<exclude name="Universal.NamingConventions.NoReservedKeywordParameterNames"/>
<!-- Complex ternary are OK. -->
<exclude name="Squiz.ControlStructures.InlineIfDeclaration.NotSingleLine" />
<exclude name="Squiz.ControlStructures.InlineIfDeclaration.NoBrackets"/>
</rule>
<!-- Those below are mostly noise, but worth to keep an eye on them. -->
<rule ref="Generic.CodeAnalysis.EmptyStatement.DetectedCatch">
<type>warning</type>
</rule>
<rule ref="WordPress.NamingConventions">
<type>warning</type>
</rule>
<rule ref="WordPress.WP.I18n.MissingTranslatorsComment">
<type>warning</type>
</rule> </rule>
<!-- Allow slash in hook name. --> <!-- Allow slash in hook name. -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment