Commit da0f470db2
da0f470db258814bb0c9bf5a73da7a3298834699
parent: c409710450
Verified · cmc
cmc <hello@cleberg.net> · 2026-10-22 19:05 UTC
Add Qlty config; simplify VerifyResult.intact
Qlty's return-statements smell is disabled: the many-return functions are
guard clauses.
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
+44
| @@ -0,0 +1,44 @@ |
| 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 | # Total file complexity is the sum of its functions, which function_complexity |
| 42 | # already checks. |
| 43 | [smells.file_complexity] |
| 44 | enabled = false |
evidence_seal/manifest.py
+2 −7
| @@ -117,13 +117,8 @@ class VerifyResult: |
| 117 | 117 | @property |
| 118 | 118 | def intact(self) -> bool: |
| 119 | 119 | """True only if nothing drifted and the manifest is internally sound.""" |
| 120 | | return ( |
| 121 | | not self.modified |
| 122 | | and not self.added |
| 123 | | and not self.removed |
| 124 | | and self.id_ok |
| 125 | | and self.root_ok |
| 126 | | ) |
| 120 | drifted = self.modified or self.added or self.removed |
| 121 | return not drifted and self.id_ok and self.root_ok |
| 127 | 122 | |
| 128 | 123 | |
| 129 | 124 | def verify_manifest( |