Skip to content

Commit

Permalink
PyLint Comments Work With Other Linter Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DevynCJohnson committed Oct 7, 2018
1 parent 0dd573f commit 5485917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylint/utils.py
Expand Up @@ -81,7 +81,7 @@
# Allow stopping after the first semicolon/hash encountered,
# so that an option can be continued with the reasons
# why it is active or disabled.
OPTION_RGX = re.compile(r"\s*#.*\bpylint:\s*([^;#]+)[;#]{0,1}")
OPTION_RGX = re.compile(r'.*#\s*pylint:\s*([^;#]+)[;#]?.*')

# The line/node distinction does not apply to fatal errors and reports.
_SCOPE_EXEMPT = "FR"
Expand Down

0 comments on commit 5485917

Please sign in to comment.