Repository navigation
Mute PHPCS 4's SinceTagNotAllowed for Codacy - #181
Conversation
WordPress-Docs asks for @SInCE on properties and mutes Squiz.Commenting.VariableComment.TagNotAllowed, which the generated rules copy. Codacy runs PHPCS 4.0.4, which reports @SInCE on a property under a code of its own, SinceTagNotAllowed, that PHPCS 3 does not have, so Codacy flagged every documented property. The new code is muted in the hand-written part of phpcs.xml; the generated rules are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for contributing to EngineScript Site Optimizer! Before we review:
Security Reminder
We'll review your PR soon. |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Coverage variation | ✅ +0.00% coverage variation (-1.00%) |
| Diff coverage | ✅ ∅ diff coverage |
Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (e6659e4) 871 841 96.56% Head commit (cc82aa9) 871 (+0) 841 (+0) 96.56% (+0.00%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>
Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#181) 0 0 ∅ (not applicable) Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Keeps
phpcs.xmlthe same as in the other EngineScript plugins. Codacy has no open issues here today, so this prevents future false positives rather than fixing current ones.WordPress-Docs asks for
@sinceon properties, and the generated rules inphpcs.xmlalready muteSquiz.Commenting.VariableComment.TagNotAllowed. Codacy runs PHPCS 4.0.4, which reports@sinceon a property under a new code,SinceTagNotAllowed, that PHPCS 3 doesn't have. That code flagged every documented property in free-gift-coupons and optimizations-ace-mc. The hand-written part ofphpcs.xmlnow mutes it too. The generated rules are unchanged, andcodacy-configs.py phpcs --checkpasses.Checked locally: Codacy's PHPCS 4.0.4 with its standards finds nothing.
composer phpcs, PHPCS 3 onphpcs.xmland gitleaks also pass.🤖 Generated with Claude Code