Navigation Menu

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

Hide dangerously flag and remove kwargs #3807

Merged
merged 2 commits into from Sep 7, 2021

Conversation

mschwager
Copy link
Contributor

Since pattern-where-python has been removed we no longer need this flag. To maintain backwards compatibility, I've only suppressed it, not fully removed it. This means you can still run with the flag, but it's not visible in -h and won't actually do anything. I figured the less we have dangerously_allow_arbitrary_code_execution floating around in the codebase the better.

PR checklist:

  • documentation is up to date
  • changelog is up to date

) as target_file, tempfile.NamedTemporaryFile(
"w"
) as equiv_file:
) as rule_file, tempfile.NamedTemporaryFile("w") as target_file:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unrelated - without equivalences we no longer need equiv_file. No need to open another file every run.

@mschwager mschwager requested a review from emjin September 7, 2021 15:56
@github-actions
Copy link
Contributor

github-actions bot commented Sep 7, 2021

🔥 Potential speedup in benchmark semgrep.bench.lodash.std: -30.5% (-2.105 s)

15 benchmarks, 2.5% faster on average.

Individual deviations greater than 20% from the baseline are reported. An individual performance degradation of over 30% or a global degradation of over 7% is an error and will block the pull request. See run output for full results ('Show all checks' > 'Tests / semgrep benchmark tests' 'Details').

@mschwager mschwager merged commit bb7acd4 into develop Sep 7, 2021
@mschwager mschwager deleted the mschwager-hide-dangerously branch September 7, 2021 16:59
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

3 participants