Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't operate on JS rules when doing rulecheck for php ruleset #656

Conversation

pattonwebz
Copy link
Member

This PR makes a change that excludes the JS rules from the PHP rule check flow when a post is updated. It prevents any JS rule issues from being deleted from the database at the end of the PHP scan (they will still be deleted if corrected when the JS scan runs).

This solves the issue reported that specific ignored issues (investigating, I found that it was all JS rules subject to this bug) would return when posts were updated and no longer be ignored.

Fixes: #655

Copy link
Member

@SteveJonesDev SteveJonesDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This does make it a bit more readable.

@pattonwebz pattonwebz merged commit b6675dd into develop Jun 5, 2024
16 checks passed
@pattonwebz pattonwebz deleted the william/655/avoid-deleting-js-issues-during-rulecheck-when-the-scan-is-not-the-js-rules-can branch June 5, 2024 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow JS rules to keep their ignored state between post updates
2 participants