Linter
Lint check is executed at veryl check or veryl build.
Alternatively, language server checks lint in real time.
The available configurations are here.
JSON report
veryl check --format json writes the diagnostics to stdout as a machine-readable report, for CI, editors or AI agents.
$ veryl check --format json
{
"format_version": 1,
"success": false,
"error_count": 0,
"warning_count": 1,
"diagnostics": [
{
"code": "unused_variable",
"severity": "warning",
"message": "\"a\" is unused",
"path": "src/top.veryl",
"line": 2,
"column": 9,
"help": "add prefix `_` to unused variable name",
"url": "https://doc.veryl-lang.org/book/07_appendix/02_semantic_error.html#unused_variable"
}
]
}
code is the name listed in Semantic Error, and path is relative to the project root.
A diagnostic may also have related diagnostics, such as the instantiation of the generic instance it was reported in.
--format-version selects the version of the report format; currently only 1 is supported.