Changeset 46291
- Timestamp:
- 09/25/2019 02:01:51 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/composer.json
r46290 r46291 20 20 "scripts": { 21 21 "compat": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --standard=phpcompat.xml.dist --report=summary,source", 22 "format": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf --report=summary,source --cache -d memory_limit=256M",23 "lint": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --report=summary,source --cache -d memory_limit=256M",22 "format": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf --report=summary,source", 23 "lint": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --report=summary,source", 24 24 "lint:errors": "@lint -n" 25 25 } -
trunk/phpcs.xml.dist
r45665 r46291 2 2 <ruleset name="WordPress Coding Standards"> 3 3 <description>Apply WordPress Coding Standards to all Core files</description> 4 5 <!-- Only scan PHP files. --> 6 <arg name="extensions" value="php"/> 7 8 <!-- Whenever possible, cache the scan results and re-use those for unchanged files on the next scan. --> 9 <arg name="cache"/> 10 11 <!-- Set the memory limit to 256M. 12 For most standard PHP configurations, this means the memory limit will temporarily be raised. 13 Ref: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#specifying-phpini-settings 14 --> 15 <ini name="memory_limit" value="256M"/> 16 17 <!-- Strip the filepaths down to the relevant bit. --> 18 <arg name="basepath" value="./"/> 19 20 <!-- Check up to 20 files simultaneously. --> 21 <arg name="parallel" value="20"/> 22 23 <!-- Show sniff codes in all reports --> 24 <arg value="ps"/> 25 26 <file>.</file> 4 27 5 28 <rule ref="WordPress-Core"/> … … 77 100 </rule> 78 101 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 102 <!-- Exclude the build folder in the current directory, as Travis puts the checkout in a build directory. --> 93 103 <exclude-pattern type="relative">^build/*</exclude-pattern>
Note: See TracChangeset
for help on using the changeset viewer.