Skip to:
Content

BuddyPress.org

Changeset 13850 for trunk/phpcs.xml.dist


Ignore:
Timestamp:
05/04/2024 12:56:31 PM (2 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/phpcs.xml.dist

    r13801 r13850  
    1212    v flag: Print processed files.
    1313    -->
    14     <arg value="psv" />
     14    <arg value="sp" />
     15
     16    <!-- Make it pretty. -->
     17    <arg name="colors"/>
    1518
    1619    <!-- Whenever possible, cache the scan results and re-use those for unchanged files on the next scan. -->
     
    2023    <arg name="parallel" value="20"/>
    2124
    22     <!-- Set severity to 6 to 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"/>
    2427
    2528    <!-- What to exclude -->
Note: See TracChangeset for help on using the changeset viewer.