Repository navigation
Mute PHPCS 4's SinceTagNotAllowed for Codacy - #161
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 Optimizations ACE MC! 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 (6e078c5) 263 256 97.34% Head commit (3a494e0) 263 (+0) 256 (+0) 97.34% (+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 (#161) 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.
Clears the five open Codacy issues, all "@SInCE tag is not allowed in member variable comment". They are false positives.
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. The hand-written part ofphpcs.xmlnow mutes that code too. The generated rules are unchanged, andcodacy-configs.py phpcs --checkpasses.Checked locally: Codacy's PHPCS 4.0.4 with its standards and PHPMD 2.15.0 find nothing.
composer phpcs, PHPCS 3 onphpcs.xmland gitleaks also pass.🤖 Generated with Claude Code