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

Allow users to disable certain matching features in a rule #3338

Merged
merged 2 commits into from
Jun 11, 2021

Conversation

aryx
Copy link
Collaborator

@aryx aryx commented Jun 11, 2021

This will allow to disable for example constant propagation
on a per-rule basis.

I've chosen the 'settings' keyword, but we could change it
for 'preferences', or 'config', whatever.

Still need to update the jsonschema after so it can be used
from the semgrep python wrapper.

test plan:
test file included

PR checklist:

  • changelog is up to date

This will allow to disable for example constant propagation
on a per-rule basis.

I've chosen the 'settings' keyword, but we could change it
for 'preferences', or 'config', whatever.

Still need to update the jsonschema after so it can be used
from the semgrep python wrapper.

test plan:
test file included
@aryx aryx requested review from emjin, IagoAbal and mjambon June 11, 2021 10:58
Copy link
Collaborator

@IagoAbal IagoAbal left a comment

Choose a reason for hiding this comment

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

Great! I was looking forward to seeing this implemented.

@aryx aryx merged commit eb54e02 into develop Jun 11, 2021
@aryx aryx deleted the config_semgrep_per_rule branch June 11, 2021 13:14
IagoAbal added a commit that referenced this pull request Jun 23, 2021
Follows: eb54e02 ("Allow users to disable certain matching features in a rule (#3338)")
aryx pushed a commit that referenced this pull request Jun 28, 2021
Follows: eb54e02 ("Allow users to disable certain matching features in a rule (#3338)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants