Add a violation to this file.
(self, line_number: int, content: str)
| 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.""" |
no test coverage detected