-
-
Notifications
You must be signed in to change notification settings - Fork 604
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 string outside of a comment is treated as a comment #383
Labels
bug
Something isn't working
Comments
Here is the culprit: To fix this might require use of Python's tokenize module since the AST doesn't provide info on comments. But using tokenize could result in a performance penalty. |
This was referenced Feb 27, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From @ehooo in #211 (comment):
When fixing this, please do not introduce a regression that prevents use of in-line
# nosec
comments alongside other source code analyzers' line comment directives? Consider someone who uses Mypy notations, pyflakes, pylint, and bandit:… # type: … # nosec # noqa: E501 ; pylint: disable=line-too-long
The text was updated successfully, but these errors were encountered: