Currently, positions of lints with E501 are handled by the PythonLinter base class. Since flake8 gives the column (like 80) as the hint, the base class extends the lint to the end of scope. This sometimes gives confusing results, like only outlining a single character (which would suggest that something is wrong with that char, rather than the line):
This doesn't match the semantics of E501 - everything after that column is a part of the warning/error, so the outline should extend till the end of the line. Here's the expected result:
Currently, positions of lints with
E501
are handled by thePythonLinter
base class. Since flake8 gives the column (like 80) as the hint, the base class extends the lint to the end of scope. This sometimes gives confusing results, like only outlining a single character (which would suggest that something is wrong with that char, rather than the line):This doesn't match the semantics of E501 - everything after that column is a part of the warning/error, so the outline should extend till the end of the line. Here's the expected result: