Changeset 13801
- Timestamp:
- 04/24/2024 01:29:58 AM (20 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
composer.json (modified) (2 diffs)
-
phpcs.xml.dist (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/composer.json
r13794 r13801 36 36 }, 37 37 "require": { 38 "composer/installers": "^1.10.0",39 38 "php": ">=5.6.0" 40 39 }, 41 40 "require-dev": { 42 "buddypress/bp-coding-standards": " 0.1.0",41 "buddypress/bp-coding-standards": "dev-trunk", 43 42 "yoast/phpunit-polyfills": "^1.0", 44 43 "spatie/phpunit-watcher": "^1.23" … … 47 46 "test": "@php ./vendor/phpunit/phpunit/phpunit", 48 47 "test_multi": "@php ./vendor/phpunit/phpunit/phpunit -c tests/phpunit/multisite.xml", 49 "phpunit": "@php ./vendor/phpunit/phpunit/phpunit", 50 "phpcs": "@php ./vendor/bin/phpcs", 48 "phpunit": "@test", 49 "phpcs": "@php ./vendor/bin/phpcs . --basepath=.", 50 "phpcbf": "@php ./vendor/bin/phpcbf . --basepath=.", 51 51 "test:watch": [ 52 52 "Composer\\Config::disableProcessTimeout", -
trunk/phpcs.xml.dist
r13324 r13801 1 1 <?xml version="1.0"?> 2 <ruleset >3 <description> PHP_CodeSniffer standard for the BuddyPress plugin.</description>2 <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="BuddyPress Coding Standards Configuration" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"> 3 <description>BuddyPress Coding Standards Configuration.</description> 4 4 5 5 <!-- Load BuddyPress Coding standards --> 6 6 <rule ref="BuddyPress" /> 7 7 8 <file>./bp-loader.php</file> 9 <file>./src/bp-xprofile</file> 8 <!-- 9 Pass some flags to PHPCS: 10 p flag: Show progress of the run. 11 s flag: Show sniff codes in all reports. 12 v flag: Print processed files. 13 --> 14 <arg value="psv" /> 10 15 11 <!-- We are starting with severity of 6. --> 16 <!-- Whenever possible, cache the scan results and re-use those for unchanged files on the next scan. --> 17 <arg name="cache" value=".phpcs/cache.json" /> 18 19 <!-- Check 20 files in parallel. --> 20 <arg name="parallel" value="20"/> 21 22 <!-- Set severity to 6 to see everything that isn't effectively turned off. --> 12 23 <arg name="severity" value="6"/> 13 24 14 25 <!-- What to exclude --> 15 26 <exclude-pattern>*/**/tests/</exclude-pattern> 16 17 <!-- Whenever possible, cache the scan results and re-use those for unchanged files on the next scan. -->18 <arg name="cache" value=".phpcs/cache.json" />19 27 </ruleset>
Note: See TracChangeset
for help on using the changeset viewer.