-
-
Notifications
You must be signed in to change notification settings - Fork 616
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
#nosec is not working for multiline assert. #623
Comments
For posterity, I ran into this on the SQL injection check for calculated SQL and I could |
im having a similiar problem where i cannot use nosec on the following code:
context:
|
i found a workaround: tuple (un)packing
|
might be dup of #658 |
This workaround can still be a problem if using black, as it will try to be helpful and reformat the multiline with parens back to the following which still breaks:
|
Describe the bug
#nosec is not working for multiline assert.
To Reproduce
I have a multiline assert like the following:
I have added #nosec to the above assert. When I run bandit -r, it does not exclude the error.
Expected behavior
Adding #nosec should exclude the error
Bandit version
The text was updated successfully, but these errors were encountered: