Make WordPress Core

Changeset 43348 for trunk/composer.json


Ignore:
Timestamp:
06/15/2018 03:56:58 PM (6 years ago)
Author:
jrf
Message:

Build/Tools: Update PHPCS ruleset for WP Core and related Composer setup.

.gitignore + svn:ignore:

  • Add the typical filenames of overloaded PHPCS configs to .gitignore.

Composer:

  • Use the develop (Packagist dev-master) version of WPCS as it contains lots of bugfixes.
  • Remove the PHPCS dependency. This is a dependency of WPCS, not of WP Core itself. This will also make sure that the PHPCS version used is always one which is supported by WPCS.
  • Refreshed the composer.lock file.

PHPCS ruleset:

  • Removed a reference to a sniff which doesn't exist in WPCS yet.
  • Use the PHPCS 3.x basepath option to clean up the file paths PHPCS shows in the reports.
  • Use the PHPCS 3.x parallel option to enable parallel scanning whenever possible to speed up the scans.
  • Whitelist the wp-includes/l10n.php file from issues being reported by the WordPress.WP.I18n sniff.

Fixes #44366.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        33wp-tests-config.php
        44.htaccess
        5 
        65# Files and folders related to build/test tools
        76phpunit.xml
         7phpcs.xml
         8.phpcs.xml
        89node_modules
        910npm-debug.log
  • trunk/composer.json

    r42961 r43348  
    1212    "require-dev": {
    1313        "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4",
    14         "squizlabs/php_codesniffer": "^3.2.3",
    15         "wp-coding-standards/wpcs": "dev-feature/new-multi-line-comment-formatting-sniffs"
     14        "wp-coding-standards/wpcs": "dev-master"
    1615    },
    1716    "scripts": {
Note: See TracChangeset for help on using the changeset viewer.