Skip to content
Snippets Groups Projects

feat: rewrite CS rules

Merged Krzysztof Dyszczyk requested to merge feature/new-cs-rules into master
3 files
+ 13
4
Compare changes
  • Side-by-side
  • Inline

Files

<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="WPDesk">
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="WPDeskPlugin">
<description>Sniffs for WordPress WPDesk plugins</description>
@@ -37,7 +37,12 @@
I.e. when `strict` has been explicitly set to `false` in an array comparison,
it will be allowed. -->
<exclude name="WordPress.PHP.StrictInArray.FoundNonStrictFalse"/>
</rule>
<exclude name="WordPress.WP.AlternativeFunctions" />
<!-- Sometimes it's better not to use user's timezone. -->
<exclude name="WordPress.DateTime.RestrictedFunctions.date_date" />
</rule>
<!-- Allow slash in hook name. -->
<rule ref="WordPress.NamingConventions.ValidHookName">
Loading