Skip to main content

Module lint

Module lint 

Source
Expand description

camel lint <file> — lint a route file with the production component catalog.

Builds a CamelContext, registers the builtins via crate::register_builtin_components_for_lint, obtains the runtime metadata catalog, and runs all default lint rules over the file. Diagnostics are rendered with ariadne to stderr. Exit codes: 0 clean, 1 any error-severity diagnostic, 2 CLI misuse (missing/unreadable file).

Structs§

LintArgs
CLI args for camel lint.
LintOutcome
Outcome of a lint run.

Functions§

production_engine
Build the production lint engine with the full builtin component catalog.
run
CLI entrypoint for camel lint.
run_lint
Run the lint engine over path with the production component catalog.