CLI linter for .gabc files.
See RULES.md for the list of currently implemented diagnostics.
From the workspace root (sibling folders):
cd gregolint && npm install
./bin/gregolint path/to/file.gabc./bin/gregolint --min-severity warning file1.gabc file2.gabc./bin/gregolint --ignore missing-name-header,duplicate-header file.gabc
Use --format json to print a single JSON object to stdout:
./bin/gregolint --format json file.gabc
Notes:
- JSON
rangeis LSP-like and 0-based (line,character). - Text output uses 1-based
line:columnfor readability.
0: no errors1: at least one diagnostic with severityerror2: usage/runtime error