Get the number of violations in this file.
(self)
| 83 | self.violations.append(Violation(line_number, content)) |
| 84 | |
| 85 | def violation_count(self) -> int: |
| 86 | """Get the number of violations in this file.""" |
| 87 | return len(self.violations) |
| 88 | |
| 89 | def has_violations(self) -> bool: |
| 90 | """Check if there are any violations.""" |