Skip to content

Commit

Permalink
[syntax-error] Detail the reason why pylint can't analyse the file af…
Browse files Browse the repository at this point in the history
…ter a syntax error (#9589)

Closes #9588
  • Loading branch information
Pierre-Sassoulas committed May 2, 2024
1 parent 82ef647 commit a831422
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/data/messages/s/syntax-error/details.rst
@@ -0,0 +1,2 @@
The python's ast builtin module cannot parse your code if there's a syntax error, so
if there's a syntax error other messages won't be available at all.
1 change: 1 addition & 0 deletions doc/data/messages/s/syntax-error/related.rst
@@ -0,0 +1 @@
- `Why can't pylint recover from a syntax error ? <https://stackoverflow.com/a/78419051/2519059>`_

0 comments on commit a831422

Please sign in to comment.