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

Function line_has_only_allowed_std_symbols

ci/lint_cpp_rs/src/lib.rs:2531–2542  ·  view source on GitHub ↗
(line: &str)

Source from the content-addressed store, hash-verified

2529}
2530
2531fn line_has_only_allowed_std_symbols(line: &str) -> bool {
2532 let code_part = split_line_comment(line);
2533 if !code_part.contains("std::") {
2534 return true;
2535 }
2536
2537 regex_std_usage().find_iter(code_part).all(|usage| {
2538 ALLOWED_STD_SYMBOLS
2539 .iter()
2540 .any(|allowed| *allowed == usage.as_str())
2541 })
2542}
2543
2544fn serial_replacement(method: &str) -> &'static str {
2545 match method {

Callers 1

check_file_contentMethod · 0.85

Calls 5

split_line_commentFunction · 0.85
regex_std_usageFunction · 0.85
anyMethod · 0.65
containsMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected