open-feature / spec

OpenFeature specification
https://openfeature.dev
Apache License 2.0
639 stars 34 forks source link

Adds a linter. #51

Closed justinabrahms closed 2 years ago

justinabrahms commented 2 years ago

Example output:

❯ make lint
Non json-spec formatted file found: specification/flag-evaluation/something.json
specification/flag-evaluation/flag-evaluation.json: Rule 1.18 is missing a RFC 2119 keyword
specification/flag-evaluation/flag-evaluation.json: Rule 1.19 is missing a RFC 2119 keyword
Non json-spec formatted file found: specification/flag-evaluation/flag-evaluation.json
make: *** [lint] Error 2
toddbaert commented 2 years ago

Looks like you need to rebase, but this is awesome! Thank you!