Changeset 13850
- Timestamp:
- 05/04/2024 12:56:31 PM (11 months ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/coding-standards.yml
r13684 r13850 34 34 composer-options: "--ignore-platform-reqs" 35 35 36 - name: Run PHPCS 37 run: composer phpcs 36 - name: Run PHPCS Escape 37 run: composer phpcs-escape 38 39 - name: Run PHP Compatibility 40 run: composer phpcompat -
trunk/Gruntfile.js
r13709 r13850 161 161 } 162 162 }, 163 // Remove this when all WPCS issues are resolved. 163 164 checktextdomain: { 164 165 options: { … … 343 344 stdout: false 344 345 }, 346 phpcs_escape: { 347 command: 'composer run phpcs-escape', 348 stdout: true 349 }, 345 350 phpcompat: { 346 command: ' ./vendor/bin/phpcs -p --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 5.6- src tests',351 command: 'composer run phpcompat', 347 352 stdout: true 348 353 }, … … 402 407 grunt.registerTask( 'style', ['stylelint', 'sass', 'postcss', 'rtlcss'] ); 403 408 grunt.registerTask( 'makepot', ['exec:makepot'] ); 404 grunt.registerTask( 'commit', ['src', 'checktextdomain', 'imagemin', 'phplint', 'exec:phpc ompat'] );409 grunt.registerTask( 'commit', ['src', 'checktextdomain', 'imagemin', 'phplint', 'exec:phpcs_escape', 'exec:phpcompat'] ); 405 410 grunt.registerTask( 'commit:blocks', ['commit', 'exec:blocks_src', 'exec:modernJS_src'] ); 406 411 grunt.registerTask( 'bp_rest', [ 'exec:rest_api', 'copy:bp_rest_components', 'copy:bp_rest_core', 'clean:bp_rest' ] ); -
trunk/composer.json
r13801 r13850 49 49 "phpcs": "@php ./vendor/bin/phpcs . --basepath=.", 50 50 "phpcbf": "@php ./vendor/bin/phpcbf . --basepath=.", 51 "phpcs-escape": "@php ./vendor/bin/phpcs src --extensions=php -sp --standard=BuddyPress --sniffs=WordPress.Security.EscapeOutput", 52 "phpcompat": "@php ./vendor/bin/phpcs --standard=PHPCompatibilityWP --extensions=php -sp --runtime-set testVersion 5.6- src tests", 51 53 "test:watch": [ 52 54 "Composer\\Config::disableProcessTimeout", -
trunk/phpcs.xml.dist
r13801 r13850 12 12 v flag: Print processed files. 13 13 --> 14 <arg value="psv" /> 14 <arg value="sp" /> 15 16 <!-- Make it pretty. --> 17 <arg name="colors"/> 15 18 16 19 <!-- Whenever possible, cache the scan results and re-use those for unchanged files on the next scan. --> … … 20 23 <arg name="parallel" value="20"/> 21 24 22 <!-- Set severity to 6to see everything that isn't effectively turned off. -->23 <arg name="severity" value=" 6"/>25 <!-- Set severity to 1 to see everything that isn't effectively turned off. --> 26 <arg name="severity" value="1"/> 24 27 25 28 <!-- What to exclude -->
Note: See TracChangeset
for help on using the changeset viewer.