MCPcopy Create free account
hub / github.com/DevCloudNinjas/DevOps-Projects / Finding

Class Finding

tools/quality_gate.py:126–138  ·  view source on GitHub ↗

A single quality gate failure.

Source from the content-addressed store, hash-verified

124
125@dataclass(frozen=True)
126class 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
141class IgnoreUnknownTagsLoader(yaml.SafeLoader if yaml else object):

Callers 6

check_secret_patternsMethod · 0.70
check_yaml_syntaxMethod · 0.70
check_shell_syntaxMethod · 0.70
check_python_syntaxMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected