Skip to content

Commit

Permalink
Switch to PHPCSStandards/PHP_CodeSniffer
Browse files Browse the repository at this point in the history
The Squizlabs repo has been abandoned. The project continues in a fork in the PHPCSStandards organisation.

Includes updating the minimum supported PHPCS version to 3.8.0.

Ref:
* squizlabs/PHP_CodeSniffer 3932
  • Loading branch information
jrfnl committed Dec 1, 2023
1 parent 283d7e0 commit 63022a5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
# Validate the xml file.
# @link http://xmlsoft.org/xmllint.html
- name: Validate against schema
run: xmllint --noout --schema vendor/squizlabs/php_codesniffer/phpcs.xsd PHPCSDev/ruleset.xml
run: xmllint --noout --schema vendor/phpcsstandards/php_codesniffer/phpcs.xsd PHPCSDev/ruleset.xml

# Check the code-style consistency of the xml file.
- name: Check code style
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ _Nothing yet._
Initial release.

[Composer PHPCS plugin]: https://github.com/PHPCSStandards/composer-installer
[PHP_CodeSniffer]: https://github.com/squizlabs/php_codesniffer/
[PHPCompatibility]: https://github.com/PHPCompatibility/PHPCompatibility
[PHP_CodeSniffer]: https://github.com/PHPCSStandards/php_codesniffer/
[PHPCompatibility]: https://github.com/PHPCompatibility/PHPCompatibility

[Unreleased]: https://github.com/PHPCSStandards/PHPCSDevCS/compare/main...HEAD
[1.1.6]: https://github.com/PHPCSStandards/PHPCSDevCS/compare/1.1.5...1.1.6
Expand Down
2 changes: 1 addition & 1 deletion PHPCSDev/ruleset.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHPCSDev" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHPCSDev" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">

<description>A PSR-12 based standard for use by sniff developers to check the code style of external PHPCS standards</description>

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PHPCSDevCS for developers of PHP_CodeSniffer sniffs
![Awesome](https://img.shields.io/badge/awesome%3F-yes!-brightgreen.svg)


This is an external ruleset for [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) intended for use by sniff developers.
This is an external ruleset for [PHP CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) intended for use by sniff developers.

* [Installation](#installation)
+ [Composer Project-based Installation](#composer-project-based-installation)
Expand Down Expand Up @@ -52,7 +52,7 @@ PHPCSDev ruleset for sniff repos

Once this project is installed, you will see a new `PHPCSDev` ruleset in the list of installed standards when you run `phpcs -i`.

**Important: This ruleset currently requires PHP_CodeSniffer >= `3.6.2+`.**
**Important: This ruleset currently requires PHP_CodeSniffer >= `3.8.0+`.**

> As sniffs developers will mostly work with the latest version of PHP_CodeSniffer, this shouldn't cause any problems.
>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"require" : {
"php" : ">=5.4",
"squizlabs/php_codesniffer" : "^3.6.2",
"phpcsstandards/php_codesniffer" : "^3.8.0",
"phpcompatibility/php-compatibility" : "^9.0.0 || ^10.0.0",
"dealerdirect/phpcodesniffer-composer-installer" : "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0"
},
Expand Down

0 comments on commit 63022a5

Please sign in to comment.