.qlty/qlty.toml

58 lines · 1300 bytes

 1config_version = "0"
 2
 3exclude_patterns = [
 4  "**/vendor/**",
 5  "**/node_modules/**",
 6  "**/testdata/**",
 7  "**/dist/**",
 8  "**/.build/**",
 9  "**/build/**",
10  "**/*.min.*",
11  "**/generated/**",
12  ".claude/**",
13  "**/Pods/**",
14  # DEBUG-only seed data for the accessibility audit tests.
15  "DomainDig/AuditFixtures.swift",
16]
17
18test_patterns = [
19  "**/test/**",
20  "**/tests/**",
21  "**/Tests/**",
22  "**/*_test.*",
23  "**/test_*.*",
24  "**/*.test.*",
25  "**/*Tests.swift",
26  "e2e/**",
27]
28
29[[source]]
30name = "default"
31default = true
32
33[[plugin]]
34name = "osv-scanner"
35
36[[plugin]]
37name = "trufflehog"
38
39# Early returns are guard clauses, which keep the happy path unindented.
40[smells.return_statements]
41enabled = false
42
43# Function and file complexity are left to review rather than counted.
44[smells.function_complexity]
45enabled = false
46
47[smells.file_complexity]
48enabled = false
49
50# Exhaustive switch-over-enum lookup tables share shape but not content.
51[language.swift.smells.duplication]
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]