Expand description
SQLite-backed per-file findings cache.
Stored at <project_root>/.normalize/findings-cache.sqlite.
Keyed by (path, engine): each engine stores its own findings per file.
A config_hash column invalidates the entry when rule config changes.
Backed by libsql. To keep the public API synchronous (the FileRule trait
is sync because rule implementations parse files with tree-sitter and run
pure analysis), we own a dedicated current-thread tokio runtime per cache
and drive libsql through runtime.block_on(...).
Structs§
- Findings
Cache - SQLite-backed per-file findings cache.
Traits§
- File
Rule - Trait for native rules that check individual files.
Functions§
- file_
mtime_ nanos - Get the mtime of a file in nanoseconds since UNIX epoch cast to
u64, or 0 on failure. - run_
file_ rule - Run a
FileRuleagainst a set of files with automatic caching and parallel execution.