imbal / safeyaml

SafeYAML: A linter for YAML-favoured JSON (& autoformatting too!)
240 stars 11 forks source link

Pre-check file for fixable issues before parsing #14

Open aanand opened 6 years ago

aanand commented 6 years ago

Add a pre-check stage before running our parser. We use PyYAML to parse the file, walk the syntax tree and check for violations (currently: ambiguous scalars like yes and unquoted strings like foo). We error out if we find any, or attempt to fix them if --fix is passed.

This brings two advantages: