-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathphpcs.xml
23 lines (21 loc) · 968 Bytes
/
phpcs.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0"?>
<ruleset name="Root">
<description>PREFIX rules for PHP_CodeSnifferr</description>
<file>.</file>
<arg name="basepath" value="."/>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>dist/*</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<exclude-pattern>*.css</exclude-pattern>
<rule ref="WordPress">
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid"/>
</rule>
<rule ref="vendor/suin/phpcs-psr4-sniff/src/Suin"/>
<rule ref="SlevomatCodingStandard.ControlStructures.AssignmentInCondition"/>
<rule ref="SlevomatCodingStandard.ControlStructures.DisallowYodaComparison"/>
<!-- <rule ref="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing">
<severity>0</severity>
</rule> -->
</ruleset>