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