MCPcopy Create free account
hub / github.com/FastLED/FastLED / scope_matches

Method scope_matches

ci/lint_cpp_rs/src/lib.rs:7014–7036  ·  view source on GitHub ↗
(&self, path: &str, project_root: &Path)

Source from the content-addressed store, hash-verified

7012
7013impl BannedHeadersChecker {
7014 fn scope_matches(&self, path: &str, project_root: &Path) -> bool {
7015 match self.scope {
7016 BannedHeadersScope::Fl => is_under_project_subpath(path, project_root, "src/fl"),
7017 BannedHeadersScope::Lib8tion => {
7018 is_under_project_subpath(path, project_root, "src/lib8tion")
7019 }
7020 BannedHeadersScope::FxSensorsPlatformsShared => {
7021 is_under_project_subpath(path, project_root, "src/fx")
7022 || is_under_project_subpath(path, project_root, "src/sensors")
7023 || is_under_project_subpath(path, project_root, "src/platforms/shared")
7024 }
7025 BannedHeadersScope::Platforms => {
7026 is_under_project_subpath(path, project_root, "src/platforms")
7027 }
7028 BannedHeadersScope::Examples => {
7029 is_under_project_subpath(path, project_root, "examples")
7030 }
7031 BannedHeadersScope::ThirdParty => {
7032 is_under_project_subpath(path, project_root, "src/third_party")
7033 }
7034 BannedHeadersScope::Tests => is_under_project_subpath(path, project_root, "tests"),
7035 }
7036 }
7037}
7038
7039impl FileContentChecker for BannedHeadersChecker {

Callers 1

should_process_fileMethod · 0.80

Calls 1

is_under_project_subpathFunction · 0.85

Tested by

no test coverage detected