MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / global_pattern_count

Method global_pattern_count

atomic-repository/src/ignore.rs:279–281  ·  view source on GitHub ↗

Get the number of patterns in global rules. Returns 0 if no global rules are loaded.

(&self)

Source from the content-addressed store, hash-verified

277 ///
278 /// Returns 0 if no global rules are loaded.
279 pub fn global_pattern_count(&self) -> usize {
280 self.global.as_ref().map(|g| g.len()).unwrap_or(0)
281 }
282
283 /// Debug method: check why a path matches or doesn't match.
284 ///

Callers

nothing calls this directly

Calls 2

as_refMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected