Skip to main content

MAX_WALK_DEPTH

Constant MAX_WALK_DEPTH 

Source
pub const MAX_WALK_DEPTH: usize = 6;
Expand description

Maximum directory depth the walker descends into the source tree.

Most design-token directories sit at depth ≤ 3 (src/styles/tokens.css). 6 covers monorepos with apps/<name>/src/styles/... without spending time on node_modules-shaped trees that the walker would otherwise already skip by name.