Skip to main content

Module cache

Module cache 

Source

Structs§

CacheEntry
What one scanned file leaves in the cache: its findings, the symbols it contributes to the cross-file index, and the imports it contributes to the resolution pass, so a cache hit feeds both project-wide passes without re-parsing the file.
CacheStore
A file-based cache store for scan findings.

Enums§

CacheError

Functions§

ensure_gitignored_dir
Create dir (and parents) if missing and drop a .gitignore that ignores the entire cache directory. Idempotent.
file_content_hash
Compute the SHA256 hash of a file’s content.
rules_hash
Compute a stable hash of the active rules by sorting them by id and hashing each rule’s serialized body along with the scanner’s own version.
sha256_hex
Hex-encoded SHA256 of data. Shared by every cache key in the workspace.