Commit 32e4f00827

32e4f008273339bc13688369560365c8047445c8

parent: abcaabca33

Verified · cmc ci/gitbay-security: success

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

Qlty: leave per-target FolderEntity and per-platform prettify out of duplication

Layout: unified · split

.qlty/qlty.toml +9 −1
@@ -60,8 +60,16 @@ match.file_patterns = ["Tests/**"]
6060set.ignored = true
6161
6262# 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.
6365[language.swift.smells.duplication]
64filter_patterns = ["(import_declaration _)", "(switch_statement _)", "(dictionary_literal _)"]
66filter_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]
6573
6674# tree-sitter-swift nests each `else if` inside the previous branch, so a one-line `if` in the
6775# fourth branch of a flat chain reports level 5.