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