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

Method add_violation

ci/util/check_files.py:104–108  ·  view source on GitHub ↗

Add a violation for a file.

(self, file_path: str, line_number: int, content: str)

Source from the content-addressed store, hash-verified

102 self.violations = {}
103
104 def add_violation(self, file_path: str, line_number: int, content: str) -> None:
105 """Add a violation for a file."""
106 if file_path not in self.violations:
107 self.violations[file_path] = FileViolations(file_path)
108 self.violations[file_path].add_violation(line_number, content)
109
110 def total_violations(self) -> int:
111 """Get total number of violations across all files."""

Callers 4

run_noexcept_ast_checkFunction · 0.95
mainFunction · 0.95
run_checker_standaloneFunction · 0.95

Calls 2

FileViolationsClass · 0.85
add_violationMethod · 0.45

Tested by

no test coverage detected