Skip to content

Conversation

@hippo91
Copy link
Contributor

@hippo91 hippo91 commented Nov 17, 2017

Fixes #1681.

It only fixes the problem for directive fixme.
The problem here is that a message is added for commented lines beginning with #FIXME or #TODO or #XXX even if the #pylint disable=fixme is present.
In fact the astroid parser doesn't include the commented lines that are following the last module statement.
Thus the astroid module object can not inform pylint about the directives that are present in those extra lines.
The fix consists in manually anlysing those lines with different regexp and string manipulations.

@PCManticore PCManticore merged commit 6425777 into pylint-dev:master Dec 11, 2017
@hippo91 hippo91 deleted the bug_1681 branch December 13, 2017 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pylint disable= directives ignored for comments following the last statement in a file

2 participants