.qlty/qlty.toml

00ea029d0652da12d0f4237769e7020b72cfa7f3
fold/.qlty/qlty.toml history · blame · raw

54 lines · 1033 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  # Throwaway prototypes kept for reference.
15  "spikes/**",
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
40# Early returns are guard clauses, which keep the happy path unindented.
41[smells.return_statements]
42enabled = false
43
44# Function and file complexity are left to review rather than counted.
45[smells.function_complexity]
46enabled = false
47
48[smells.file_complexity]
49enabled = false
50
51# tree-sitter-swift nests each `else if` inside the previous branch, so a one-line `if` in the
52# fourth branch of a flat chain reports level 5.
53[language.swift.smells.nested_control_flow]
54enabled = false