Skip to main content

MAX_SCAN_DEPTH_LIMIT

Constant MAX_SCAN_DEPTH_LIMIT 

Source
pub const MAX_SCAN_DEPTH_LIMIT: usize = 32;
Expand description

Upper bound accepted for scan_depth.

Not a matter of taste. The walk is breadth-first over every directory that is not excluded, so cost grows with the tree, and a repository with a deep generated tree (a Bazel bazel-out, a .terraform provider cache) can turn an unbounded walk into a multi-minute stall on a background pass nobody is watching.