Rules: indentation: Do not crash on unexpected token
Previously, when the indentation rule blocked on an unexpected token, the program crashed with something like: File "/usr/lib/python3/dist-packages/yamllint/rules/indentation.py", line 434, in check assert context['stack'][-1].type == KEY AssertionError Instead, we prefer report the error as a regular `LintProblem` and continue processing. Fixes: #3pull/4/head
parent
a483524b63
commit
f98bed1085
Loading…
Reference in New Issue