Composer and PHPCS config updates
This commit is contained in:
21
phpcs.xml
21
phpcs.xml
@@ -2,8 +2,25 @@
|
||||
<ruleset name="WPLiveticker2">
|
||||
<description>Derived from WordPress Coding Standard</description>
|
||||
|
||||
<!-- Config arguments -->
|
||||
<arg value="psvn"/>
|
||||
<arg name="colors"/>
|
||||
|
||||
<!-- Files to sniff -->
|
||||
<file>wp-liveticker2.php</file>
|
||||
<file>includes</file>
|
||||
<file>views</file>
|
||||
|
||||
<!-- Compliance with WordPress Coding Standard -->
|
||||
<config name="minimum_supported_wp_version" value="4.0"/>
|
||||
<rule ref="WordPress">
|
||||
<!-- Type hint checks mess up PHP 7 checks, while this plugin has compatibility level 5.5 and above. -->
|
||||
<exclude name="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing"/>
|
||||
<!-- Makes view HTML code messy -->
|
||||
<exclude name="Squiz.PHP.EmbeddedPhp.ContentBeforeEnd"/>
|
||||
<exclude name="Squiz.PHP.EmbeddedPhp.ContentBeforeOpen"/>
|
||||
<exclude name="Squiz.PHP.EmbeddedPhp.ContentAfterOpen"/>
|
||||
</rule>
|
||||
|
||||
<!-- PHP compatibility level -->
|
||||
<config name="testVersion" value="5.5-"/>
|
||||
<rule ref="PHPCompatibility"/>
|
||||
</ruleset>
|
||||
|
Reference in New Issue
Block a user