dist
1 year ago
includes
4 weeks ago
locale
2 months ago
res
1 year ago
src
4 weeks ago
templates
4 weeks ago
vendor-bin
3 years ago
Makefile
5 years ago
README.md
5 years ago
installer.php
4 weeks ago
loader.php
4 weeks ago
phpcs.compatibility.xml
1 year ago
phpcs.xml
5 years ago
phpunit.xml
10 months ago
repositories.xml
3 years ago
webpack.config.js
1 year ago
phpcs.xml
80 lines
| 1 | <?xml version="1.0"?> |
| 2 | <ruleset name="WPML"> |
| 3 | <description>WPML Coding Standards</description> |
| 4 | |
| 5 | <rule ref="WordPress-Core"/> |
| 6 | <rule ref="WordPress-Docs"/> |
| 7 | <rule ref="WordPress-Extra"/> |
| 8 | |
| 9 | <file>.</file> |
| 10 | <exclude-pattern>*/.git/*</exclude-pattern> |
| 11 | <exclude-pattern>*/.githooks/*</exclude-pattern> |
| 12 | <exclude-pattern>*/.make/*</exclude-pattern> |
| 13 | <exclude-pattern>*/locale/*</exclude-pattern> |
| 14 | <exclude-pattern>*/res/*</exclude-pattern> |
| 15 | <exclude-pattern>*/vendor/*</exclude-pattern> |
| 16 | <exclude-pattern>*/tests/*</exclude-pattern> |
| 17 | <exclude-pattern>*.js</exclude-pattern> |
| 18 | <exclude-pattern>*.mo</exclude-pattern> |
| 19 | <exclude-pattern>*.po</exclude-pattern> |
| 20 | <exclude-pattern>*.twig</exclude-pattern> |
| 21 | <exclude-pattern>*.css</exclude-pattern> |
| 22 | <exclude-pattern>*.scss</exclude-pattern> |
| 23 | |
| 24 | <!-- How to scan --> |
| 25 | <arg value="sp"/><!-- Show sniff and progress --> |
| 26 | <arg name="basepath" value="./"/><!-- Strip the file paths down to the relevant bit --> |
| 27 | <arg name="extensions" value="php"/> |
| 28 | <arg name="parallel" value="12"/><!-- Enables parallel processing when available for faster results. --> |
| 29 | |
| 30 | <config name="testVersion" value="5.6-"/> |
| 31 | |
| 32 | <!-- Rules: Check PHP version compatibility--> |
| 33 | <rule ref="vendor/phpcompatibility/php-compatibility/PHPCompatibility"/> |
| 34 | <rule ref="vendor/phpcompatibility/phpcompatibility-wp/PHPCompatibilityWP"/> |
| 35 | |
| 36 | <!-- Rules: WordPress Coding Standards--> |
| 37 | <config name="minimum_supported_wp_version" value="4.4"/> |
| 38 | <rule ref="vendor/wp-coding-standards/wpcs/WordPress"/> |
| 39 | |
| 40 | <rule ref="Squiz.Commenting.FileComment.Missing"> |
| 41 | <severity>0</severity> |
| 42 | </rule> |
| 43 | <rule ref="Squiz.Commenting.ClassComment.Missing"> |
| 44 | <severity>0</severity> |
| 45 | </rule> |
| 46 | <rule ref="WordPress.WhiteSpace.PrecisionAlignment.Found"> |
| 47 | <!-- This sniff can't tell from intentional and unintentional indentation and this makes it fairly annoying --> |
| 48 | <!-- See https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1304 --> |
| 49 | <severity>0</severity> |
| 50 | </rule> |
| 51 | <rule ref="Generic.Commenting.DocComment.MissingShort"> |
| 52 | <severity>0</severity> |
| 53 | </rule> |
| 54 | <rule ref="Squiz.Commenting.FunctionComment.Missing"> |
| 55 | <severity>0</severity> |
| 56 | </rule> |
| 57 | <rule ref="Squiz.Commenting.FunctionComment.MissingParamComment"> |
| 58 | <severity>0</severity> |
| 59 | </rule> |
| 60 | <rule ref="WordPress.Files.FileName.InvalidClassFileName"> |
| 61 | <severity>0</severity> |
| 62 | </rule> |
| 63 | <rule ref="WordPress.Files.FileName.NotHyphenatedLowercase"> |
| 64 | <severity>0</severity> |
| 65 | </rule> |
| 66 | <rule ref="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid"> |
| 67 | <severity>0</severity> |
| 68 | </rule> |
| 69 | <rule ref="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase"> |
| 70 | <severity>0</severity> |
| 71 | </rule> |
| 72 | <rule ref="Generic.Arrays.DisallowShortArraySyntax.Found"> |
| 73 | <severity>0</severity> |
| 74 | </rule> |
| 75 | <rule ref="Generic.Arrays.DisallowLongArraySyntax.Found"/> |
| 76 | <rule ref="WordPress.PHP.DisallowShortTernary.Found"> |
| 77 | <severity>0</severity> |
| 78 | </rule> |
| 79 | |
| 80 | </ruleset> |