Commit be788ce778
Verified · cmc
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] |
| 52 | filter_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. | ||
| 54 | filter_patterns = [ | ||
| 55 | "(import_declaration _)", | ||
| 56 | "(switch_statement _)", | ||
| 57 | "(function_declaration name: (simple_identifier) @_n (#match? @_n \"^(ownershipHistory|dnsHistory)$\"))", | ||
| 58 | ] | ||