Skip to:
Content

BuddyPress.org

Changeset 13850 for trunk/composer.json


Ignore:
Timestamp:
05/04/2024 12:56:31 PM (3 years ago)
Author:
espellcaste
Message:

Improve handing of PHP code standards using WPCS

Until we have all WPCS warnings and errors fixed, we block pull requests, and releases, with code with escaping or/and PHP Compatibility issues.

For local development only, we set WPCS severity to 1 to see everything that is not effectively turned off.

Run composer run phpcs for showing all WPCS issues.
Run composer run phpcs-escape for showing escaping issues.
Run composer run phpcompat for showing PHP Compatibility issues.

See #7228
Closes ​https://github.com/buddypress/buddypress/pull/282/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/composer.json

    r13801 r13850  
    4949                "phpcs": "@php ./vendor/bin/phpcs . --basepath=.",
    5050                "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",
    5153                "test:watch": [
    5254                        "Composer\\Config::disableProcessTimeout",
Note: See TracChangeset for help on using the changeset viewer.