A single quality gate failure.
| 124 | |
| 125 | @dataclass(frozen=True) |
| 126 | class Finding: |
| 127 | """A single quality gate failure.""" |
| 128 | |
| 129 | check: str |
| 130 | path: Path |
| 131 | message: str |
| 132 | line: int | None = None |
| 133 | |
| 134 | def format(self) -> str: |
| 135 | location = str(self.path) |
| 136 | if self.line is not None: |
| 137 | location = f"{location}:{self.line}" |
| 138 | return f"[{self.check}] {location} - {self.message}" |
| 139 | |
| 140 | |
| 141 | class IgnoreUnknownTagsLoader(yaml.SafeLoader if yaml else object): |
no outgoing calls
no test coverage detected