guilatrova / tryceratops

A linter to prevent exception handling antipatterns in Python (limited only for those who like dinosaurs).
MIT License
432 stars 26 forks source link

Fix: Tolerate and present discovery issues #13

Closed guilatrova closed 3 years ago

guilatrova commented 3 years ago

Make tryceratops tolerant to bad python files (bad syntax, etc), like for example:

def func():
    try:
        a = 1
    exc # <- Accidental line break, invalid python syntax
    ept:
        raise

Before:

No response and just the stack trace described by https://github.com/guilatrova/tryceratops/issues/11

Now:

Displays an error when found

image