Skip to content

mcandre/kirill

Repository files navigation

kirill: a JSON document integrity checker

ABOUT

kirill hunts down rogue JSON's. kirill is designed to identify JSON documents in large project directories. kirill can also feed these file paths to external linters.

EXAMPLES

$ cd examples

$ kirill .
./grocer-missing-document-envelope.json
./fruit-unquoted-key.json
./fruit.json
./.jsfmtrc
./grocer.json
./.eslintrc
./.jshintrc
./fruit-with-comment.json
./fruit-missing-end-brace.json
./.jslintrc
./fruit-trailing-comma.json

$ kirill -print0 . | xargs -0 -n 1 -t jq -r input_filename
jq -r input_filename ./grocer-missing-document-envelope.json
./grocer-missing-document-envelope.json
jq -r input_filename ./fruit-unquoted-key.json
parse error: Invalid numeric literal at line 2, column 11
jq -r input_filename ./fruit.json
./fruit.json
jq -r input_filename ./.jsfmtrc
./.jsfmtrc
jq -r input_filename ./grocer.json
./grocer.json
jq -r input_filename ./.eslintrc
./.eslintrc
jq -r input_filename ./.jshintrc
./.jshintrc
jq -r input_filename ./fruit-with-comment.json
parse error: Invalid numeric literal at line 1, column 3
jq -r input_filename ./fruit-missing-end-brace.json
parse error: Unfinished JSON term at EOF at line 3, column 0
jq -r input_filename ./.jslintrc
./.jslintrc
jq -r input_filename ./fruit-trailing-comma.json
parse error: Expected another key-value pair at line 3, column 1

LICENSE

BSD-2-Clause

REQUIREMENTS

CONTRIBUTING

For more information on developing kirill itself, see DEVELOPMENT.md.

SEE ALSO

  • sail identifies C/C++ source code
  • stank identifies shell scripts

About

a JSON document integrity checker

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages