Repository navigation
Replace phpcs.yml with the shared lint workflow - #127
Merged
Merged
Conversation
Lints only changed files with the repo's own ruleset (PHPCS and ESLint), via themegrill/workflows lint.yml. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
|
Build for ⬇️ Download flash.zip (3.1M) Installs directly via Plugins → Add New → Upload Plugin. A later push only rebuilds this if its commit message includes |
There was a problem hiding this comment.
🟡 Changes recommended
The change has unresolved critical and moderate lint workflow issues that can cause TypeScript parse failures and omit PHPCS warning annotations.
2 open issues
What changed in this PR
This pull request replaces the repository-specific PHPCS workflow with the shared themegrill/workflows lint workflow for changed PHP and JavaScript-family files.
Changes:
- Removes the standalone
.github/workflows/phpcs.yml. - Adds a reusable shared lint workflow caller.
- Configures PHP 7.4 and pull-request path filters for PHP, JavaScript, JSX, TypeScript, and TSX files.
- Reuses the repository’s existing PHPCS and ESLint configurations.
| File | Summary |
|---|---|
.github/workflows/phpcs.yml |
Removes the obsolete repository-specific PHPCS workflow. |
.github/workflows/lint.yml |
Adds the shared lint workflow caller. Review findings: the path filter omits .mjs and .cjs files (moderate, 1 vote); the repository’s phpcs.xml suppresses warnings, preventing the promised PHPCS warning annotations (moderate, 3 votes); TypeScript and TSX linting lacks the required TypeScript parser and plugin (critical, 2 votes); and the broadened JavaScript scope may lint bundled or third-party files with unrelated violations (moderate, 1 vote). |
This pull request requires changes.
Review effort: Lite
Comment on lines
+12
to
+13
| - '**.ts' | ||
| - '**.tsx' |
|
|
||
| jobs: | ||
| lint: | ||
| uses: themegrill/workflows/.github/workflows/lint.yml@master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Part of the CI workflow consolidation: one shared lint workflow instead of a per-repo copy.
phpcs.yml.themegrill/workflowslint.yml.phpcs.xml(and ESLint config, where present).Tested in the pilot (#126): PHPCS and ESLint ran and annotated existing violations in the files touched.
🤖 Generated with Claude Code