Commit Graph

3 Commits (6f7ae97382d44b21bf1196e0ea312637dc9596c5)

Author SHA1 Message Date
Sorin Sbarnea 6f7ae97382 Fix confusing ReadError traceback
Avoids confusing tracebacks when ReadErrors exceptions are raised
from the yaml reader.

Now we do print the filename that failed to load and stop processing
in order to avoid additional exceptions.

Also adds tests to prevent future regressions.

Fixes: #261
5 years ago
Adrien Vergé 68618be4cc Rules: indentation: Handle sets
Sets are like mappings, that do not contain values. Example:

    set:
      ? key one
      ? key two
      ? [non, scalar, key]
9 years ago
Adrien Vergé 6b5948c06b Tests: Reorganize common and global tests 9 years ago