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

Function _print_violations

ci/lint_platformio/run_all_checkers.py:101–113  ·  view source on GitHub ↗
(violations: dict[str, list[tuple[int, str]]])

Source from the content-addressed store, hash-verified

99
100
101def _print_violations(violations: dict[str, list[tuple[int, str]]]) -> int:
102 total = 0
103 for path, issues in sorted(violations.items()):
104 try:
105 rel = str(Path(path).relative_to(PROJECT_ROOT))
106 except ValueError:
107 rel = path
108 rel = rel.replace("\\", "/")
109 print(f"\n{rel}:")
110 for line_no, msg in sorted(issues):
111 print(f" Line {line_no}: {msg}")
112 total += 1
113 return total
114
115
116def run_platformio_lint(warn_only: bool | None = None) -> bool:

Callers 1

run_platformio_lintFunction · 0.70

Calls 2

itemsMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected