WordPress.org

Make WordPress Core

Changeset 43348 for trunk/composer.lock


Ignore:
Timestamp:
06/15/2018 03:56:58 PM (3 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.lock

    r42960 r43348  
    55        "This file is @generated automatically"
    66    ],
    7     "content-hash": "4b409623b2bc5d8e87b7f45d57a60990",
     7    "content-hash": "9c2c871b813e89682ef445611d2f5363",
    88    "packages": [],
    99    "packages-dev": [
     
    7878        {
    7979            "name": "squizlabs/php_codesniffer",
    80             "version": "3.2.3",
     80            "version": "3.3.0",
    8181            "source": {
    8282                "type": "git",
    8383                "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
    84                 "reference": "4842476c434e375f9d3182ff7b89059583aa8b27"
     84                "reference": "d86873af43b4aa9d1f39a3601cc0cfcf02b25266"
    8585            },
    8686            "dist": {
    8787                "type": "zip",
    88                 "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/4842476c434e375f9d3182ff7b89059583aa8b27",
    89                 "reference": "4842476c434e375f9d3182ff7b89059583aa8b27",
     88                "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/d86873af43b4aa9d1f39a3601cc0cfcf02b25266",
     89                "reference": "d86873af43b4aa9d1f39a3601cc0cfcf02b25266",
    9090                "shasum": ""
    9191            },
     
    125125                "standards"
    126126            ],
    127             "time": "2018-02-20T21:35:23+00:00"
     127            "time": "2018-06-06T23:58:19+00:00"
    128128        },
    129129        {
    130130            "name": "wp-coding-standards/wpcs",
    131             "version": "dev-feature/new-multi-line-comment-formatting-sniffs",
     131            "version": "dev-master",
    132132            "source": {
    133133                "type": "git",
    134134                "url": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git",
    135                 "reference": "ce4d719296ebbecd01f57bc3729833e89b39ad99"
     135                "reference": "cf6b310caad735816caef7573295f8a534374706"
    136136            },
    137137            "dist": {
    138138                "type": "zip",
    139                 "url": "https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/zipball/ce4d719296ebbecd01f57bc3729833e89b39ad99",
    140                 "reference": "ce4d719296ebbecd01f57bc3729833e89b39ad99",
     139                "url": "https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/zipball/cf6b310caad735816caef7573295f8a534374706",
     140                "reference": "cf6b310caad735816caef7573295f8a534374706",
    141141                "shasum": ""
    142142            },
     
    165165                "wordpress"
    166166            ],
    167             "time": "2017-11-30T18:28:51+00:00"
     167            "time": "2018-02-16T01:57:48+00:00"
    168168        }
    169169    ],
Note: See TracChangeset for help on using the changeset viewer.