Skip to main content

find_root

Function find_root 

Source
pub fn find_root(config: &AuditConfig) -> PathBuf
Expand description

Find the project root by walking up from CWD.

Strategy depends on config:

  • Pass 1: Check config.root_markers in order
  • Pass 2: Check for .git directory
  • Pass 3: Fall back to CWD