-
Notifications
You must be signed in to change notification settings - Fork 395
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
chore: use deepok to mark lines as ok when run with the pro engine #2985
Conversation
We have deepruleid to mark lines as matching only with the pro engine, but we didn't have anything to mark lines as ok only with the pro engine. deepok is intended for that. This PR updates annotations to use deepok.
Failing tests are validation errors, appear unrelated (they're probably due to Brandon's changes) |
yep, seems like the validation errors are unrelated and historical isn't passing bc of some type inference checks. Lgtm -- thanks emma! |
I merged all the latest changes in develop (including Brandon's changes to regex metavars capture), but tests are still reported as failing. Is that expected? |
nope, that's not expected -- I suspect that this is because I can look into it for a bit 👍 edit: yep:
|
Oh no, --test must check it differently. I could change the format of this annotation if that would be the simplest way |
This will help solve: semgrep/semgrep-rules#2985. Adds parsing of notations like `ruleid: deepok: foobar` and `ruleid: deepruleid: foobar`. _To Test:_ Run `python -m semgrep --test semgrep-rules/java/spring/security/injection` PR checklist: - [X] Purpose of the code is [evident to future readers](https://semgrep.dev/docs/contributing/contributing-code/#explaining-code) - [x] Tests included or PR comment includes a reproducible test plan - [x] Documentation is up-to-date - [x] A changelog entry was [added to changelog.d](https://semgrep.dev/docs/contributing/contributing-code/#adding-a-changelog-entry) for any user-facing change - [x] Change has no security implications (otherwise, ping security team) If you're unsure about any of this, please see: - [Contribution guidelines](https://semgrep.dev/docs/contributing/contributing-code)! - [One of the more specific guides located here](https://semgrep.dev/docs/contributing/contributing/)
passes develop now! I will merge :D |
We have deepruleid to mark lines as matching only with the pro engine, but we didn't have anything to mark lines as ok only with the pro engine. deepok is intended for that.
This PR updates annotations to use deepok.