Make WordPress Core

Changeset 44645


Ignore:
Timestamp:
01/18/2019 02:14:24 AM (6 years ago)
Author:
pento
Message:

Build Tools: Upgrade WPCS to 2.0.0.

A few sniffs have been renamed, this change includes the relevant phpcs:ignore comment updates.

Fixes #46002.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/composer.json

    r44574 r44645  
    1212    "require-dev": {
    1313        "dealerdirect/phpcodesniffer-composer-installer": "~0.5.0",
    14         "wp-coding-standards/wpcs": "~1.2.0"
     14        "wp-coding-standards/wpcs": "~2.0.0"
    1515    },
    1616    "scripts": {
  • trunk/composer.lock

    r44574 r44645  
    55        "This file is @generated automatically"
    66    ],
    7     "content-hash": "c3625c9fc2ce3a44cad41a64f258bafd",
     7    "content-hash": "c7426ffeca8db395605e43bccf174b02",
    88    "packages": [],
    99    "packages-dev": [
     
    127127        {
    128128            "name": "wp-coding-standards/wpcs",
    129             "version": "1.2.1",
     129            "version": "2.0.0",
    130130            "source": {
    131131                "type": "git",
    132132                "url": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git",
    133                 "reference": "f328bcafd97377e8e5e5d7b244d5ddbf301a3a5c"
     133                "reference": "c9eaadaafefce36b3cb7e06eb15305b8c4cae9ce"
    134134            },
    135135            "dist": {
    136136                "type": "zip",
    137                 "url": "https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/zipball/f328bcafd97377e8e5e5d7b244d5ddbf301a3a5c",
    138                 "reference": "f328bcafd97377e8e5e5d7b244d5ddbf301a3a5c",
     137                "url": "https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/zipball/c9eaadaafefce36b3cb7e06eb15305b8c4cae9ce",
     138                "reference": "c9eaadaafefce36b3cb7e06eb15305b8c4cae9ce",
    139139                "shasum": ""
    140140            },
    141141            "require": {
    142                 "php": ">=5.3",
    143                 "squizlabs/php_codesniffer": "^2.9.0 || ^3.0.2"
     142                "php": ">=5.4",
     143                "squizlabs/php_codesniffer": "^3.3.1"
    144144            },
    145145            "require-dev": {
    146                 "phpcompatibility/php-compatibility": "^9.0"
     146                "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0",
     147                "phpcompatibility/php-compatibility": "^9.0",
     148                "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
    147149            },
    148150            "suggest": {
     
    166168                "wordpress"
    167169            ],
    168             "time": "2018-12-18T09:43:51+00:00"
     170            "time": "2019-01-16T10:13:16+00:00"
    169171        }
    170172    ],
  • trunk/tests/phpunit/tests/functions.php

    r44573 r44645  
    88        $x        = new MockClass;
    99        $x->_baba = 5;
    10         $x->yZ    = 'baba'; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar
     10        $x->yZ    = 'baba'; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
    1111        $x->a     = array( 5, 111, 'x' );
    1212        $this->assertEquals(
     
    4444        $x        = new MockClass;
    4545        $x->_baba = 5;
    46         $x->yZ    = 'baba'; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar
     46        $x->yZ    = 'baba'; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
    4747        $x->a     = array( 5, 111, 'x' );
    4848        $d        = array( 'pu' => 'bu' );
  • trunk/tests/phpunit/tests/user.php

    r44611 r44645  
    200200     */
    201201    public function test_user_unset() {
    202         // phpcs:disable WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar
     202        // phpcs:disable WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
    203203        $user = new WP_User( self::$author_id );
    204204
Note: See TracChangeset for help on using the changeset viewer.