Skip to content

alta lint ​

Validates every chart and content file (a chart folder, a .json with a "schema", a universe folder); exit 1 on a problem.

Usage ​

text
alta lint [path…] [--repo] [--json] [--strict] [--game <file>]

Arguments ​

NameDescription
path…optionalFiles or folders to lint; folders are searched for charts and content files.

Options ​

NameTypeDefaultDescription
--repoflagLint all the content of the Alta OS repository.
--jsonflagPrint the report as JSON (alta.check/1).
--strictflagTreat warnings as errors.
--gamestringDefault: the repository's gameThe game file to check quest packs against.

Exit codes ​

NameDescription
0ok
1problems found
2bad usage
3not in this version

Examples ​

Lint a chart

Terminal
sh
alta lint my-agent
Output
text
ok   my-agent (chart)
     warning: source: The source still holds placeholders (zeros). [chart.source-placeholder]
       fix: Replace them with the commit git prints and the digest alta package prints.
       docs: https://docs.os.altasystem.ai/reference/errors#chart-source-placeholder
1 checked, 0 errors, 1 warning

Warnings fail too

Terminal
sh
alta lint my-agent --strict
Output · exit 1
text
FAIL my-agent (chart)
     warning: source: The source still holds placeholders (zeros). [chart.source-placeholder]
       fix: Replace them with the commit git prints and the digest alta package prints.
       docs: https://docs.os.altasystem.ai/reference/errors#chart-source-placeholder
1 checked, 0 errors, 1 warning

See also ​

Alta OS is open source (MIT).