• Ian Stapleton Cordasco's avatar
    Handle SyntaxErrors in a slightly smarter way · 07c187b8
    Ian Stapleton Cordasco authored
    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
    07c187b8
Name
Last commit
Last update
docs Loading commit data...
example-plugin Loading commit data...
src/flake8 Loading commit data...
tests Loading commit data...
.appveyor.yml Loading commit data...
.bandit.yml Loading commit data...
.coveragerc Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
.pylintrc Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.rst Loading commit data...
CONTRIBUTORS.txt Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
codecov.yml Loading commit data...
dev-requirements.txt Loading commit data...
pytest.ini Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...