(self)
| 203 | return relative_path |
| 204 | |
| 205 | def run(self) -> list[Finding]: |
| 206 | findings: list[Finding] = [] |
| 207 | findings.extend(self.check_tracked_ignored_files()) |
| 208 | findings.extend(self.check_secret_patterns()) |
| 209 | findings.extend(self.check_syntax()) |
| 210 | findings.extend(self.check_node_package_locks()) |
| 211 | return findings |
| 212 | |
| 213 | def git_files(self, *patterns: str) -> list[Path]: |
| 214 | cmd = ["git", "ls-files", *patterns] |