Skip to content

Commit f4124f0

Browse files
committed
Switch to PHPCSStandards/PHP_CodeSniffer
The Squizlabs repo has been abandoned. The project continues in a fork in the PHPCSStandards organisation. Ref: * squizlabs/PHP_CodeSniffer 3932
1 parent 88a55f8 commit f4124f0

File tree

14 files changed

+22
-22
lines changed

14 files changed

+22
-22
lines changed

.github/CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ To determine where best to report the bug, use the first part of the sniff name:
1919

2020
Sniff name starts with | Report to
2121
--- | ---
22-
`Generic` | [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer/issues/)
23-
`PSR2` | [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer/issues/)
24-
`Squiz` | [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer/issues/)
22+
`Generic` | [PHP_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/)
23+
`PSR2` | [PHP_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/)
24+
`Squiz` | [PHP_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/)
2525
`Universal` | [PHPCSExtra](https://github.com/PHPCSStandards/PHPCSExtra/issues/)
2626
`VariableAnalysis` | [VariableAnalysis](https://github.com/sirbrillig/phpcs-variable-analysis/issues/)
2727
`WordPress` | [WordPressCS](https://github.com/WordPress/WordPress-Coding-Standards/issues/)

.github/workflows/basics.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050

5151
- name: 'Composer: adjust dependencies'
5252
# Using PHPCS `master` as an early detection system for bugs upstream.
53-
run: composer require --no-update --no-scripts squizlabs/php_codesniffer:"dev-master" --no-interaction
53+
run: composer require --no-update --no-scripts phpcsstandards/php_codesniffer:"dev-master" --no-interaction
5454

5555
# Install dependencies and handle caching in one go.
5656
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer

.github/workflows/quicktest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
if: ${{ matrix.php == '5.4' && matrix.dependencies == 'lowest' }}
7474
run: >
7575
composer update --prefer-lowest --no-scripts --no-interaction
76-
squizlabs/php_codesniffer
76+
phpcsstandards/php_codesniffer
7777
phpcsstandards/phpcsutils
7878
phpcsstandards/phpcsextra
7979
sirbrillig/phpcs-variable-analysis
@@ -83,7 +83,7 @@ jobs:
8383
if: ${{ matrix.php == 'latest' && matrix.dependencies == 'lowest' }}
8484
run: >
8585
composer update --prefer-lowest --no-scripts --no-interaction --ignore-platform-req=php+
86-
squizlabs/php_codesniffer
86+
phpcsstandards/php_codesniffer
8787
phpcsstandards/phpcsutils
8888
phpcsstandards/phpcsextra
8989
sirbrillig/phpcs-variable-analysis

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
if: ${{ matrix.dependencies == 'dev' }}
118118
run: >
119119
composer require --no-update --no-scripts --no-interaction
120-
squizlabs/php_codesniffer:"dev-master"
120+
phpcsstandards/php_codesniffer:"dev-master"
121121
phpcsstandards/phpcsutils:"dev-develop"
122122
phpcsstandards/phpcsextra:"dev-develop"
123123
sirbrillig/phpcs-variable-analysis:"2.x"
@@ -145,7 +145,7 @@ jobs:
145145
if: ${{ ! startsWith( matrix.php, '8' ) && matrix.dependencies == 'lowest' }}
146146
run: >
147147
composer update --prefer-lowest --no-scripts --no-interaction
148-
squizlabs/php_codesniffer
148+
phpcsstandards/php_codesniffer
149149
phpcsstandards/phpcsutils
150150
phpcsstandards/phpcsextra
151151
sirbrillig/phpcs-variable-analysis
@@ -155,7 +155,7 @@ jobs:
155155
if: ${{ startsWith( matrix.php, '8' ) && matrix.dependencies == 'lowest' }}
156156
run: >
157157
composer update --prefer-lowest --no-scripts --no-interaction --ignore-platform-req=php+
158-
squizlabs/php_codesniffer
158+
phpcsstandards/php_codesniffer
159159
phpcsstandards/phpcsutils
160160
phpcsstandards/phpcsextra
161161
sirbrillig/phpcs-variable-analysis

.phpcs.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
2-
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="VIP Coding Standards" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
2+
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="VIP Coding Standards" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">
33
<description>The custom ruleset for the VIP Coding Standards itself.</description>
44

55
<file>.</file>

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ Included Files
6464
This project includes:
6565

6666
- [WordPress-Coding-Standards](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards), which is Copyright &copy; 2009 John Godley and contributors. Released under the MIT license https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/develop/LICENSE
67-
- [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer), Copyright &copy; 2012, Squiz Pty Ltd (ABN 77 084 670 600). Released under the following license: https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt
67+
- [PHP_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer), Copyright &copy; 2012, Squiz Pty Ltd (ABN 77 084 670 600). Released under the following license: https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# VIP Coding Standards
22

3-
This project contains [PHP_CodeSniffer (PHPCS) sniffs and rulesets](https://github.com/squizlabs/PHP_CodeSniffer) to validate code developed for [WordPress VIP](https://wpvip.com/).
3+
This project contains [PHP_CodeSniffer (PHPCS) sniffs and rulesets](https://github.com/PHPCSStandards/PHP_CodeSniffer) to validate code developed for [WordPress VIP](https://wpvip.com/).
44

55
This project contains two rulesets:
66

@@ -16,7 +16,7 @@ Go to https://docs.wpvip.com/technical-references/code-review/phpcs-report/ to l
1616
## Minimal requirements
1717

1818
* PHP 5.4+
19-
* [PHPCS 3.7.2+](https://github.com/squizlabs/PHP_CodeSniffer/releases)
19+
* [PHPCS 3.7.2+](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases)
2020
* [PHPCSUtils 1.0.8+](https://github.com/PHPCSStandards/PHPCSUtils)
2121
* [WPCS 3.0.0+](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/releases)
2222
* [VariableAnalysis 2.11.17+](https://github.com/sirbrillig/phpcs-variable-analysis/releases)

WordPress-VIP-Go/ruleset.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
2-
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="WordPress-VIP-Go" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
2+
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="WordPress-VIP-Go" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">
33
<description>WordPress VIP Go Coding Standards</description>
44

55
<!-- The rules below are the changes from between the original sniff or parent ruleset, and what should be applied for this Standard. -->

WordPressVIPMinimum/ruleset.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
2-
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="WordPressVIPMinimum" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
2+
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="WordPressVIPMinimum" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">
33
<description>WordPress VIP Minimum Coding Standards</description>
44

55
<!--

bin/unit-tests

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#
1818

1919
if [[ $(php -r 'echo PHP_VERSION_ID;') -ge 80100 ]]; then
20-
"$(pwd)/vendor/bin/phpunit" --filter=WordPressVIPMinimum "$(pwd)/vendor/squizlabs/php_codesniffer/tests/AllTests.php" --no-coverage --no-configuration --bootstrap=./tests/bootstrap.php --dont-report-useless-tests $@
20+
"$(pwd)/vendor/bin/phpunit" --filter=WordPressVIPMinimum "$(pwd)/vendor/phpcsstandards/php_codesniffer/tests/AllTests.php" --no-coverage --no-configuration --bootstrap=./tests/bootstrap.php --dont-report-useless-tests $@
2121
else
22-
"$(pwd)/vendor/bin/phpunit" --filter=WordPressVIPMinimum "$(pwd)/vendor/squizlabs/php_codesniffer/tests/AllTests.php" --no-coverage $@
22+
"$(pwd)/vendor/bin/phpunit" --filter=WordPressVIPMinimum "$(pwd)/vendor/phpcsstandards/php_codesniffer/tests/AllTests.php" --no-coverage $@
2323
fi

0 commit comments

Comments
 (0)