Skip to content

Drop VIP's deprecated DynamicCalls sniff; run cleanup only on merges - #163

Merged
PDowney merged 1 commit into
mainfrom
ci-vip-ruleset-branch-cleanup
Nov 28, 2026
Merged

PDowney merged 1 commit into
mainfrom
ci-vip-ruleset-branch-cleanup

Conversation

@PDowney

@PDowney PDowney commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • VIP job: the ruleset loads WordPress-VIP-Go, which excludes WordPressVIPMinimum.Functions.DynamicCalls, and then added the whole Functions category back. So every run printed VIPCS 3.1's warning that the standard "uses 1 deprecated sniff". The category reference is replaced by its other three sniffs: CheckReturnValue, RestrictedFunctions, and StripTags.
  • Branch Cleanup: the job now starts only for a merged pull request from this repository. That is the job-level condition Site Optimizer's copy has. Before, the code was checked out for every closed pull request and the delete step was then skipped. The four plugin repositories' copies now differ only in PLUGIN_SLUG.

The same change goes to the other plugin repositories in their own pull requests.

Testing

  • The VIP ruleset as the workflow writes it was run locally with PHPCS 3.13.6 and VIPCS 3.1.0, the versions CI installs. It finds the same results before and after. The deprecation warning prints before the change and not after.
  • actionlint, zizmor (the same ignored and suppressed counts as on main), check-jsonschema (vendor.github-workflows), yamllint, and checkov are all clean.
  • gitleaks: no leaks in the staged changes.

No changelog entry, because this changes CI only.

🤖 Generated with Claude Code

The VIP job's ruleset loads WordPress-VIP-Go, which excludes
WordPressVIPMinimum.Functions.DynamicCalls, then added the whole
Functions category back, so every run printed VIPCS 3.1's deprecation
warning for that sniff. It now names the category's other three sniffs.
The findings on the plugin's files are the same before and after.

Branch Cleanup now starts only for a merged pull request from this
repository, as in Site Optimizer, instead of checking out the code for
every closed pull request and skipping the step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for contributing to Optimizations ACE MC!

Before we review:

  • Have you tested your changes with WordPress 7.0+?
  • Are your changes compatible with PHP 8.3+?
  • Have you followed WordPress coding standards?
  • Did you update the CHANGELOG.md if needed?

Security Reminder
This plugin changes WooCommerce, WP Store Locator, and WordPress admin screens, so please ensure:

  • All user input is properly sanitized
  • All output is properly escaped
  • No security vulnerabilities are introduced

We'll review your PR soon.

@codacy-production

codacy-production Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Coverage ∅ diff coverage · +0.00% coverage variation

Metric Results
Coverage variation ✅ +0.00% coverage variation (-1.00%)
Diff coverage ✅ ∅ diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (8fea3ad) 263 256 97.34%
Head commit (4eca72b) 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 (#163) 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.

@PDowney
PDowney merged commit 0d59d07 into main Nov 28, 2026
31 checks passed
@github-actions
github-actions Bot deleted the ci-vip-ruleset-branch-cleanup branch November 28, 2026 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant