Ticket #46152: 46152-move-command-line-directives-to-ruleset.2.diff
File 46152-move-command-line-directives-to-ruleset.2.diff, 1.9 KB (added by , 5 years ago) |
---|
-
composer.json
17 17 "wp-coding-standards/wpcs": "~2.1.0" 18 18 }, 19 19 "scripts": { 20 "format": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf --report=summary,source --cache -d memory_limit=256M",21 "lint": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --report=summary,source --cache -d memory_limit=256M",20 "format": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf --report=summary,source", 21 "lint": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --report=summary,source", 22 22 "lint:errors": "@lint -n" 23 23 } 24 24 } -
phpcs.xml.dist
2 2 <ruleset name="WordPress Coding Standards"> 3 3 <description>Apply WordPress Coding Standards to all Core files</description> 4 4 5 <ini name="memory_limit" value="256M"/> 6 7 <arg name="extensions" value="php"/> 8 <arg name="cache"/> 9 <!-- Strip the filepaths down to the relevant bit. --> 10 <arg name="basepath" value="./"/> 11 12 <!-- Check up to 20 files simultaneously. --> 13 <arg name="parallel" value="20"/> 14 15 <!-- Show sniff codes in all reports --> 16 <arg value="ps"/> 17 18 <file>.</file> 19 5 20 <rule ref="WordPress-Core"/> 6 21 <rule ref="WordPress.CodeAnalysis.EmptyStatement"/> 7 22 … … 76 91 </properties> 77 92 </rule> 78 93 79 <arg name="extensions" value="php"/>80 81 <!-- Strip the filepaths down to the relevant bit. -->82 <arg name="basepath" value="./"/>83 84 <!-- Check up to 20 files simultaneously. -->85 <arg name="parallel" value="20"/>86 87 <!-- Show sniff codes in all reports -->88 <arg value="ps"/>89 90 <file>.</file>91 92 94 <!-- Exclude the build folder in the current directory, as Travis puts the checkout in a build directory. --> 93 95 <exclude-pattern type="relative">^build/*</exclude-pattern> 94 96