File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ PHP_CodeSniffer helps you detect violations of a defined coding standard.
17
17
Format the values for these config options per the [ PHP_CodeSniffer documentation] ( https://.com/squizlabs/PHP_CodeSniffer ) .
18
18
19
19
* file_extensions - This is where you can configure the file extensions for the files that you want PHP_CodeSniffer to analyze.
20
- * standard - This is the comma delimited list of standards that you want PHP_CodeSniffer to use while analyzing your files.
20
+ * standard - This is the comma delimited list of standards that you want
21
+ PHP_CodeSniffer to use while analyzing your files. You may optionally include
22
+ a relative path to a custom phpcs ruleset.xml file.
21
23
* ignore_warnings - You can hide warnings, and only report errors with this option.
22
24
* encoding - By default, PHPCS uses ISO-8859-1. Use this to change it to your encoding, e.g. UTF-8.
23
25
@@ -30,7 +32,7 @@ Format the values for these config options per the [PHP_CodeSniffer documentatio
30
32
enabled: true
31
33
config:
32
34
file_extensions: "php,inc,lib"
33
- standard: "PSR1,PSR2"
35
+ standard: "PSR1,PSR2,my_custom_php_ruleset.xml "
34
36
ignore_warnings: true
35
37
encoding: utf-8
36
38
ratings:
You can’t perform that action at this time.
0 commit comments