summaryrefslogtreecommitdiff
path: root/example-plugin/src
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-11-17 17:17:48 -0600
committerIan Cordasco <graffatcolmingov@gmail.com>2016-11-17 17:17:48 -0600
commit07c187b8d3e5881ccf85f93a065bf9c2467dcbd1 (patch)
tree92357a5b3b01625fedbf61305b4e54b4355063fe /example-plugin/src
parentfd1cc3843598fd3445026d78603ec498513b6260 (diff)
downloadflake8-07c187b8d3e5881ccf85f93a065bf9c2467dcbd1.tar.gz
Handle SyntaxErrors in a slightly smarter way
SyntaxErrors are strange and mystical beasts. On top of the problems we encountered previously in GitLab#237, it's now apparent that SyntaxErrors can also occur across multiple lines (in fact, across the rest of a file). In the event of a "multi-line" SyntaxError, we need to determine what row to report and what the column number is. For now, we're going to use the row number of the first line and limit the column number to be less than the end of the line. It may not be perfect, but it is slightly better. Related-to #237 Closes #259
Diffstat (limited to 'example-plugin/src')
0 files changed, 0 insertions, 0 deletions