-
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
New Codemod: Sonar Flask Secure Cookie #969
Conversation
2f6cf76
to
2528368
Compare
assert ( | ||
cls.codemod.requested_rules[-1] in sonar_results | ||
assert any( | ||
map(lambda x: x in sonar_results, cls.codemod.requested_rules) |
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.
list comp style would be preferable here
any(x in sonar_results for x in cls.codemod.requested_rules)
change_description = "Flask response `set_cookie` call should be called with `secure=True`, `httponly=True`, and `samesite='Lax'`." | ||
|
||
def leave_Call(self, original_node, updated_node): | ||
# Try to match the func |
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.
rm comment
Quality Gate passedIssues Measures |
Overview