Commit c151f8c52b

c151f8c52be5f4874d60625b482cd68edaea834a

parent: 77849c64ac

Verified · cmc

cmc <hello@cleberg.net> · 2026-10-22 18:15 UTC

Add Qlty config

SwiftLint, shellcheck, and trufflehog. Style rules that flag most files
(line_length, identifier_name, trailing_comma, todo) are ignored, and
force_try is ignored in Tests.

Layout: unified · split

.qlty/.gitignore added +7
@@ -0,0 +1,7 @@
1*
2!configs
3!configs/**
4!hooks
5!hooks/**
6!qlty.toml
7!.gitignore
.qlty/qlty.toml added +45
@@ -0,0 +1,45 @@
1config_version = "0"
2
3exclude_patterns = [
4 "**/.build/**",
5 ".claude/**",
6]
7
8test_patterns = [
9 "Tests/**",
10]
11
12[smells]
13mode = "comment"
14
15[[source]]
16name = "default"
17default = true
18
19[[plugin]]
20name = "swiftlint"
21
22[[plugin]]
23name = "shellcheck"
24
25[[plugin]]
26name = "trufflehog"
27
28# Style rules that flag most of the codebase without finding defects.
29[[triage]]
30match.plugins = ["swiftlint"]
31match.rules = [
32 "swiftlint:line_length",
33 "swiftlint:identifier_name",
34 "swiftlint:trailing_comma",
35 "swiftlint:todo",
36]
37match.file_patterns = ["**"]
38set.ignored = true
39
40# Tests use try! to fail fast.
41[[triage]]
42match.plugins = ["swiftlint"]
43match.rules = ["swiftlint:force_try"]
44match.file_patterns = ["Tests/**"]
45set.ignored = true