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

Method add_violation

ci/util/check_files.py:81–83  ·  view source on GitHub ↗

Add a violation to this file.

(self, line_number: int, content: str)

Source from the content-addressed store, hash-verified

79 self.violations = []
80
81 def add_violation(self, line_number: int, content: str) -> None:
82 """Add a violation to this file."""
83 self.violations.append(Violation(line_number, content))
84
85 def violation_count(self) -> int:
86 """Get the number of violations in this file."""

Callers 5

merge_checker_resultsFunction · 0.45
_violations_to_resultsFunction · 0.45
check_file_contentMethod · 0.45
add_violationMethod · 0.45

Calls 2

ViolationClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected