Qlty config and code cleanup !1
merged
merged by cmc on 2026-10-30 00:23 UTC
· audit-labs/evidence-seal:cleanup into main
3 files changed, +55 −7
Layout: unified · split
.qlty/.gitignore
added
+7
| @@ -0,0 +1,7 @@ |
| |
1 | * |
| |
2 | !configs |
| |
3 | !configs/** |
| |
4 | !hooks |
| |
5 | !hooks/** |
| |
6 | !qlty.toml |
| |
7 | !.gitignore |
.qlty/qlty.toml
added
+46
| @@ -0,0 +1,46 @@ |
| |
1 | config_version = "0" |
| |
2 | |
| |
3 | exclude_patterns = [ |
| |
4 | "**/vendor/**", |
| |
5 | "**/node_modules/**", |
| |
6 | "**/testdata/**", |
| |
7 | "**/dist/**", |
| |
8 | "**/.build/**", |
| |
9 | "**/build/**", |
| |
10 | "**/*.min.*", |
| |
11 | "**/generated/**", |
| |
12 | ".claude/**", |
| |
13 | "**/Pods/**", |
| |
14 | ] |
| |
15 | |
| |
16 | test_patterns = [ |
| |
17 | "**/test/**", |
| |
18 | "**/tests/**", |
| |
19 | "**/Tests/**", |
| |
20 | "**/*_test.*", |
| |
21 | "**/test_*.*", |
| |
22 | "**/*.test.*", |
| |
23 | "**/*Tests.swift", |
| |
24 | "e2e/**", |
| |
25 | ] |
| |
26 | |
| |
27 | [[source]] |
| |
28 | name = "default" |
| |
29 | default = true |
| |
30 | |
| |
31 | [[plugin]] |
| |
32 | name = "osv-scanner" |
| |
33 | |
| |
34 | [[plugin]] |
| |
35 | name = "trufflehog" |
| |
36 | |
| |
37 | # Early returns are guard clauses, which keep the happy path unindented. |
| |
38 | [smells.return_statements] |
| |
39 | enabled = false |
| |
40 | |
| |
41 | # Function and file complexity are left to review rather than counted. |
| |
42 | [smells.function_complexity] |
| |
43 | enabled = false |
| |
44 | |
| |
45 | [smells.file_complexity] |
| |
46 | enabled = false |
evidence_seal/manifest.py
+2 −7
| @@ -117,13 +117,8 @@ class VerifyResult: |
| 117 | @property |
117 | @property |
| 118 | def intact(self) -> bool: |
118 | def intact(self) -> bool: |
| 119 | """True only if nothing drifted and the manifest is internally sound.""" |
119 | """True only if nothing drifted and the manifest is internally sound.""" |
| 120 | return ( |
120 | drifted = self.modified or self.added or self.removed |
| 121 | not self.modified |
121 | return not drifted and self.id_ok and self.root_ok |
| 122 | and not self.added |
| |
| 123 | and not self.removed |
| |
| 124 | and self.id_ok |
| |
| 125 | and self.root_ok |
| |
| 126 | ) |
| |
| 127 | |
122 | |
| 128 | |
123 | |
| 129 | def verify_manifest( |
124 | def verify_manifest( |