Linting
jacket lint runs jailint with the project's [lint] settings; its flags are those of jailint. Lint rules lists every rule, and jailint says how to configure and silence them.
Lints the current project's inclusion graph, or the files under explicit paths.
jailint [OPTIONS] [paths]...
Arguments
| Argument | Meaning |
|---|---|
[paths]... | Files or folders to scan explicitly; without paths, use the project's entrypoints |
Options
| Option | Meaning |
|---|---|
--fix | Apply the fixes that are safe to apply automatically |
--config <file> | Settings file (default: the nearest jacket.toml) |
-A <rule> | Allow a rule or a compiler warning (repeatable; all for every rule) |
-W <rule> | Warn on a rule or a compiler warning |
-D <rule> | Deny a rule; -D warnings makes every warning an error |
--max-nesting <n> | Blocks excessive_nesting allows (default: [lint] max_nesting in jacket.toml, else 6) |
--lifetime-mode <must|strict> | Lifetime proof mode (default: [lint.lifetimes] mode, else must) |
--compile-time-budget <steps> | Steps (loop iterations and calls) one compile-time evaluation may run before it fails (default: 100000000; 0: no limit) |
--check-time-limit <seconds> | Seconds each program may take to check before its check stops with partial results; every program gets the whole limit, and the run as a whole has none (default: 10; 0: no limit) |
--manifest <file> | Write JSON source-check coverage and actual target contexts |
--context <program file> | Check an enclosing program; report only the requested paths |
--checked-files <file> | Write the actual checked paths, one per line |
--allow-incomplete | Count programs that do not compile on this target without failing the run |
--list | List the rules and their default levels |
-v, --verbose | Show each program as it is compiled |
-h, --help | Print help |
-V, --version | Print version |
Options shared with jaic
| Option | Meaning |
|---|---|
-os <os> | target OS: linux, windows, macos or wasm |
-cpu <cpu> | target CPU: x64 or arm64 |
-target <triple> | build for an LLVM target triple (overrides -os and -cpu) |
-import_dir <dir> | also look for modules in <dir> (repeatable; short form -I) |
-add "code" | add the code to the target program (repeatable) |
-j, --jobs <n> | run n compiles (or tests) at once (default: one per CPU) |
--color <when> | colour in diagnostics: auto, always or never |
Exit status: 0 when nothing at level deny was found, 1 when something was, 2 on a usage or configuration error.