Skip to main content

Module baseline_location

Module baseline_location 

Source
Expand description

Warn when a saved baseline lands inside the fallow cache directory.

Fallow writes a .gitignore with * into its cache directory, so Git ignores every file there. A baseline saved into that directory (for example --save-baseline .fallow/dead-code.json) cannot be committed, and a CI run on a fresh checkout does not find it.

Functionsยง

warn_if_in_cache_dir
Print a warning to stderr when baseline is inside cache_dir. A relative baseline is relative to the working directory, like the write itself.