Commit 32e4f00827
Verified · cmc ci/gitbay-security: success
Layout: unified · split
.qlty/qlty.toml +9 −1
| @@ -60,8 +60,16 @@ match.file_patterns = ["Tests/**"] | |||
| 60 | set.ignored = true | 60 | set.ignored = true |
| 61 | 61 | ||
| 62 | # Exhaustive switch-over-enum lookup tables and the light and dark color tables share shape but not content. | 62 | # Exhaustive switch-over-enum lookup tables and the light and dark color tables share shape but not content. |
| 63 | # FolderEntity is declared in each app target because App Intents reads its metadata from the target | ||
| 64 | # that declares it; prettify draws through UIKit on iOS and AppKit on the Mac. | ||
| 63 | [language.swift.smells.duplication] | 65 | [language.swift.smells.duplication] |
| 64 | filter_patterns = ["(import_declaration _)", "(switch_statement _)", "(dictionary_literal _)"] | 66 | filter_patterns = [ |
| 67 | "(import_declaration _)", | ||
| 68 | "(switch_statement _)", | ||
| 69 | "(dictionary_literal _)", | ||
| 70 | "(class_declaration name: (type_identifier) @_n (#eq? @_n \"FolderEntity\"))", | ||
| 71 | "(function_declaration name: (simple_identifier) @_n (#eq? @_n \"prettify\"))", | ||
| 72 | ] | ||
| 65 | 73 | ||
| 66 | # tree-sitter-swift nests each `else if` inside the previous branch, so a one-line `if` in the | 74 | # tree-sitter-swift nests each `else if` inside the previous branch, so a one-line `if` in the |
| 67 | # fourth branch of a flat chain reports level 5. | 75 | # fourth branch of a flat chain reports level 5. |