Skip to content

Drop VIP's deprecated DynamicCalls sniff; skip deleted branches - #184

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
Contributor

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 runs for release-2.3.0 and codacy-phpcs4 failed with "Failed to delete branch", because the merge had already deleted the branch. The repository's delete_branch_on_merge setting is off. The workflow now checks that the branch exists first and treats a missing branch as done, like the other three plugin repositories. git push --delete no longer hides its own error output.

The same VIP change goes to the other three 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 (none for this plugin). 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 failed after merges that had already deleted their
branch. Like the other three plugin repositories, it now checks that
the branch exists first, and treats a missing branch as done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@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 (e1faacb) 871 841 96.56%
Head commit (6e25e40) 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 (#184) 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.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for contributing to EngineScript Site Optimizer!

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 stores per-site settings and emits browser resource hints, 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.

@PDowney
PDowney merged commit fa83a1f into main Nov 28, 2026
28 checks passed
@github-actions
github-actions Bot deleted the ci-vip-ruleset-branch-cleanup branch November 28, 2026 02:35
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