mirror of
https://github.com/WPTechnix/wp-settings-framework.git
synced 2025-10-04 02:26:00 +08:00
32 lines
989 B
XML
32 lines
989 B
XML
<?xml version="1.0"?>
|
|
<ruleset name="Custom Coding standards">
|
|
<!-- Show sniff codes in output -->
|
|
<arg name="parallel" value="8"/>
|
|
<arg name="cache" value="/tmp/.phpcs.cache"/>
|
|
<arg name="report-width" value="120"/>
|
|
<arg name="extensions" value="php"/>
|
|
|
|
<config name="installed_paths" value="vendor/phpcompatibility/php-compatibility" />
|
|
|
|
<!-- PHP version -->
|
|
<config name="testVersion" value="8.0-"/>
|
|
|
|
<!-- Scan these directories -->
|
|
<file>src</file>
|
|
|
|
<!-- Exclude patterns -->
|
|
<exclude-pattern>*/bin/*</exclude-pattern>
|
|
<exclude-pattern>*/vendor/*</exclude-pattern>
|
|
<exclude-pattern>*/node_modules/*</exclude-pattern>
|
|
|
|
<rule ref="PSR12" />
|
|
<rule ref="PHPCompatibility" />
|
|
|
|
<!-- Generic Rules -->
|
|
<rule ref="Generic.Files.LineLength">
|
|
<properties>
|
|
<property name="lineLimit" value="120"/>
|
|
<property name="absoluteLineLimit" value="160"/>
|
|
</properties>
|
|
</rule>
|
|
</ruleset>
|