-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fix default path include/exclude behavior; update codemod hierarchy #780
Conversation
f1a91ce
to
72b80cc
Compare
@@ -6,7 +6,9 @@ | |||
"pixee:python/add-requests-timeouts", | |||
"pixee:python/secure-random", | |||
"pixee:python/sandbox-process-creation", | |||
"pixee:python/subprocess-shell-false", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is a result of adding --dry-run
(which I was using locally while testing).
"pixee:python/django-session-cookie-secure-off", | ||
"pixee:python/django-model-without-dunder-str", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really sure how to account for this change 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is really surprising... I can see pygoat django Model classes that would merit this codemod, but why this wasn't getting triggered before 🤷
# run codemods one at a time making sure to respect the given sequence | ||
for codemod in codemods_to_run: | ||
# NOTE: this may be used as a progress indicator by upstream tools | ||
logger.info("running codemod %s", codemod.id) | ||
|
||
if isinstance(codemod.detector, SemgrepRuleDetector): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This filtering logic is now handled by the codemod itself.
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the changes and tests all look as expected, awesome work!
"pixee:python/django-session-cookie-secure-off", | ||
"pixee:python/django-model-without-dunder-str", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is really surprising... I can see pygoat django Model classes that would merit this codemod, but why this wasn't getting triggered before 🤷
Overview
Update default path include/exclude behavior; update codemod hierarchy
Description
.git
,*.pyc
, etc.)CodemodExecutionContext
where it can be easily cached and reused