Make WordPress Core

Changeset 45600


Ignore:
Timestamp:
07/05/2019 02:49:53 AM (5 years ago)
Author:
pento
Message:

Coding Standards: Upgrade WPCS to 2.1.1.

Noteable changes:

  • WPCS now throws warnings when non-strict comparisons are used. There are quite a few of them in Core. 🙃
  • WPCS now detects and warns for assignments in loop conditions.

See #47632.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/composer.json

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

    r44645 r45600  
    55        "This file is @generated automatically"
    66    ],
    7     "content-hash": "c7426ffeca8db395605e43bccf174b02",
     7    "content-hash": "54fbee5534d4ee1d332bb374c5442e79",
    88    "packages": [],
    99    "packages-dev": [
     
    127127        {
    128128            "name": "wp-coding-standards/wpcs",
    129             "version": "2.0.0",
     129            "version": "2.1.1",
    130130            "source": {
    131131                "type": "git",
    132                 "url": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git",
    133                 "reference": "c9eaadaafefce36b3cb7e06eb15305b8c4cae9ce"
     132                "url": "https://github.com/WordPress/WordPress-Coding-Standards.git",
     133                "reference": "bd9c33152115e6741e3510ff7189605b35167908"
    134134            },
    135135            "dist": {
    136136                "type": "zip",
    137                 "url": "https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/zipball/c9eaadaafefce36b3cb7e06eb15305b8c4cae9ce",
    138                 "reference": "c9eaadaafefce36b3cb7e06eb15305b8c4cae9ce",
     137                "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/bd9c33152115e6741e3510ff7189605b35167908",
     138                "reference": "bd9c33152115e6741e3510ff7189605b35167908",
    139139                "shasum": ""
    140140            },
     
    149149            },
    150150            "suggest": {
    151                 "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically."
     151                "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically."
    152152            },
    153153            "type": "phpcodesniffer-standard",
     
    168168                "wordpress"
    169169            ],
    170             "time": "2019-01-16T10:13:16+00:00"
     170            "time": "2019-05-21T02:50:00+00:00"
    171171        }
    172172    ],
Note: See TracChangeset for help on using the changeset viewer.