Skip to content

Update PHP_CodeSniffer repository link and schema URL#233

Open
rodrigoprimo wants to merge 1 commit intolightspeedwp:mainfrom
rodrigoprimo:docs/update-phpcs-repo-link
Open

Update PHP_CodeSniffer repository link and schema URL#233
rodrigoprimo wants to merge 1 commit intolightspeedwp:mainfrom
rodrigoprimo:docs/update-phpcs-repo-link

Conversation

@rodrigoprimo
Copy link
Copy Markdown

@rodrigoprimo rodrigoprimo commented Mar 27, 2026

PHP_CodeSniffer has moved to a new GitHub organization. The squizlabs/PHP_CodeSniffer repository is now archived and the project is actively maintained at https://github.com/PHPCSStandards/PHP_CodeSniffer.

Additionally, PHP_CodeSniffer now provides a canonical permalink for the XML schema used in the xsi:noNamespaceSchemaLocation attribute of ruleset files. This replaces the previous raw.githubusercontent.com URL with https://schema.phpcodesniffer.com/phpcs.xsd.

See:

Summary by CodeRabbit

Release Notes

  • Chores
    • Updated configuration schema reference to use the canonical host
    • Updated dependency documentation with current repository information

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 27, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: ac8364d4-9c77-46ee-83f3-c85847085890

📥 Commits

Reviewing files that changed from the base of the PR and between 5c6a5ac and 66ffbfa.

📒 Files selected for processing (2)
  • .phpcs.xml.dist
  • README.md

Walkthrough

Updated repository and schema references for PHP_CodeSniffer to point to new canonical locations. The XML configuration now references the official schema host instead of the GitHub raw content URL, and the README credits section links to the updated repository organisation.

Changes

Cohort / File(s) Summary
Configuration Schema Reference
.phpcs.xml.dist
Updated XML schema location from GitHub raw URL to canonical schema host at https://schema.phpcodesniffer.com/phpcs.xsd.
Documentation Credits
README.md
Updated PHP_CodeSniffer repository URL from squizlabs organisation to PHPCSStandards organisation.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 Our ruleset hops to a new home so grand,
With schema and links from PHPCSStandards' hand,
No logic did change, just breadcrumbs we find,
Pointing to places of canonical kind!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely summarizes the main changes across the pull request: updating both the PHP_CodeSniffer repository link and the schema URL.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the PHP_CodeSniffer schema and repository URLs to their new official locations. A critical issue was identified in the composer.json file where duplicate require-dev and config sections will cause composer commands to fail, requiring these blocks to be merged.

Comment thread README.md
* [Gulp](https://gulpjs.com/)
* [Node.js](https://nodejs.org/)
* [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer)
* [PHP_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The composer.json file is invalid because it contains duplicate keys (require-dev and config). This will cause composer commands to fail and must be fixed.

Please resolve this by merging the duplicate sections. For instance, the two require-dev blocks should be combined into one. When doing so, you'll need to choose the correct version for packages like wp-coding-standards/wpcs, which is specified with both ^3.0 and ^3.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant