Commit be788ce778

be788ce778e5048df25e146f5c9593fffe4c97e9

parent: b0a3f9abee

Verified · cmc

cmc <hello@cleberg.net> · 2026-10-23 05:49 UTC

Qlty: leave the two history lookups out of duplication

Layout: unified · split

.qlty/qlty.toml +7 −1
@@ -49,4 +49,10 @@ enabled = false
49 49
50# Exhaustive switch-over-enum lookup tables share shape but not content. 50# Exhaustive switch-over-enum lookup tables share shape but not content.
51[language.swift.smells.duplication] 51[language.swift.smells.duplication]
52filter_patterns = ["(import_declaration _)", "(switch_statement _)"] 52# ownershipHistory and dnsHistory each pair a local history with an external one and merge
53# them; one generic version would take six closures.
54filter_patterns = [
55 "(import_declaration _)",
56 "(switch_statement _)",
57 "(function_declaration name: (simple_identifier) @_n (#match? @_n \"^(ownershipHistory|dnsHistory)$\"))",
58]