Skip to content

Commit b9b2a87

Browse files
committed
👷 qlty.toml
1 parent b1433e4 commit b9b2a87

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed

.qlty/qlty.toml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# For a guide to configuration, visit https://qlty.sh/d/config
2+
# Or for a full reference, visit https://qlty.sh/d/qlty-toml
3+
config_version = "0"
4+
5+
exclude_patterns = [
6+
"*_min.*",
7+
"*-min.*",
8+
"*.min.*",
9+
"**/.yarn/**",
10+
"**/*.d.ts",
11+
"**/assets/**",
12+
"**/bin/**",
13+
"**/bower_components/**",
14+
"**/build/**",
15+
"**/cache/**",
16+
"**/config/**",
17+
"**/.devcontainer",
18+
"**/db/**",
19+
"**/deps/**",
20+
"**/dist/**",
21+
"**/doc/**",
22+
"**/extern/**",
23+
"**/external/**",
24+
"**/generated/**",
25+
"**/Godeps/**",
26+
"**/gradlew/**",
27+
"**/mvnw/**",
28+
"**/node_modules/**",
29+
"**/protos/**",
30+
"**/seed/**",
31+
"**/target/**",
32+
"**/templates/**",
33+
"**/testdata/**",
34+
"**/vendor/**",
35+
]
36+
37+
38+
test_patterns = [
39+
"**/test/**",
40+
"**/spec/**",
41+
"**/*.test.*",
42+
"**/*.spec.*",
43+
"**/*_test.*",
44+
"**/*_spec.*",
45+
"**/test_*.*",
46+
"**/spec_*.*",
47+
]
48+
49+
[smells]
50+
mode = "comment"
51+
52+
[smells.boolean_logic]
53+
threshold = 4
54+
enabled = true
55+
56+
[smells.file_complexity]
57+
threshold = 55
58+
enabled = false
59+
60+
[smells.return_statements]
61+
threshold = 4
62+
enabled = true
63+
64+
[smells.nested_control_flow]
65+
threshold = 4
66+
enabled = true
67+
68+
[smells.function_parameters]
69+
threshold = 4
70+
enabled = true
71+
72+
[smells.function_complexity]
73+
threshold = 5
74+
enabled = true
75+
76+
[smells.duplication]
77+
enabled = true
78+
threshold = 20

0 commit comments

Comments
 (0)