Skip to main content

Module validate

Module validate 

Source

Structs§

ValidateArgs

Functions§

collect_files
Collect input files from globs/directories, applying exclude filters.
fetch_compiled_catalogs
Fetch and compile all schema catalogs (default, SchemaStore, and custom registries).
load_config
Locate lintel.toml, load the full config, and return the config directory. Returns (config, config_dir, config_path). When no config is found or cwd is unavailable the config is default and config_path is None.
read_files
Read files concurrently with tokio, using a semaphore to avoid exhausting file descriptors. I/O errors are pushed as LintelDiagnostic::Io.
run
Errors
run_with
Like run, but calls on_check each time a file is checked, allowing callers to stream progress (e.g. verbose output) as files are processed.
run_with_contents
Like run_with, but accepts pre-read file contents instead of reading from disk. Use this when the caller has already read files (e.g. to share reads between format checking and validation).
try_parse_all
Try parsing content with each known format, returning the first success.