Skip to content

feat(scaffolds): add lint/i18n scaffold - #51

Open
Adi-ty wants to merge 1 commit into
mainfrom
feat/lint-i18n-scaffold
Open

feat(scaffolds): add lint/i18n scaffold#51
Adi-ty wants to merge 1 commit into
mainfrom
feat/lint-i18n-scaffold

Conversation

@Adi-ty

@Adi-ty Adi-ty commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a lint/i18n scaffold: a standalone phpcs.i18n.xml.dist running WordPress.WP.I18n configured with the project's text domain, plus a lint:i18n composer script. Companion to rtCamp/wp-devtools's i18n lens skill (issue #45).

Copilot AI balanced review requested due to automatic review settings August 5, 2026 17:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Adds a new lint/i18n scaffold to generate a standalone PHPCS ruleset focused on WordPress.WP.I18n, configured with the project’s text domain, and wires a composer lint:i18n script to run it.

Changes:

  • Introduces a Mustache template for phpcs.i18n.xml.dist with strict text_domain configuration and sensible defaults/exclusions.
  • Adds scaffold.json manifest to define inputs, composer dev dependencies, and the lint:i18n script.
  • Updates the wp-tooling changelog to document the new scaffold.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
node-packages/wp-tooling/scaffolds/lint/i18n/templates/phpcs.i18n.xml.dist.mustache New standalone PHPCS ruleset template for i18n checks bound to a project text domain.
node-packages/wp-tooling/scaffolds/lint/i18n/scaffold.json New scaffold manifest defining inputs, dependencies, and a lint:i18n composer script.
node-packages/wp-tooling/CHANGELOG.md Documents the addition of the lint/i18n scaffold and its rationale.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +21 to +29
"composer_dev_dependencies": {
"squizlabs/php_codesniffer": "^3.7",
"wp-coding-standards/wpcs": "^3.0"
},
"scripts": {
"composer": {
"lint:i18n": "phpcs --standard=phpcs.i18n.xml.dist"
}
}
Comment on lines +46 to +48
<!-- Installed Claude Code skills ship deliberately-defective eval fixtures;
linting them reports seeded defects as if they were the project's own. -->
<exclude-pattern>*/.claude/*</exclude-pattern>
Comment on lines +38 to +39
<!-- The sniff only reads PHP; limiting extensions keeps CSS/JS out of the run. -->
<arg name="extensions" value="php"/>
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.

2 participants