Skip to content

Commit cacfc35

Browse files
committed
🔧 Configure QLTY.sh
1 parent c4b321a commit cacfc35

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

‎.qlty/qlty.toml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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+
"**/docs/**",
23+
"**/extern/**",
24+
"**/external/**",
25+
"**/generated/**",
26+
"**/Godeps/**",
27+
"**/gradlew/**",
28+
"**/mvnw/**",
29+
"**/node_modules/**",
30+
"**/protos/**",
31+
"**/seed/**",
32+
"**/target/**",
33+
"**/templates/**",
34+
"**/testdata/**",
35+
"**/vendor/**",
36+
]
37+
38+
39+
test_patterns = [
40+
"**/test/**",
41+
"**/spec/**",
42+
"**/*.test.*",
43+
"**/*.spec.*",
44+
"**/*_test.*",
45+
"**/*_spec.*",
46+
"**/test_*.*",
47+
"**/spec_*.*",
48+
]
49+
50+
[smells]
51+
mode = "comment"
52+
53+
[smells.boolean_logic]
54+
threshold = 4
55+
enabled = true
56+
57+
[smells.file_complexity]
58+
threshold = 55
59+
enabled = false
60+
61+
[smells.return_statements]
62+
threshold = 4
63+
enabled = true
64+
65+
[smells.nested_control_flow]
66+
threshold = 4
67+
enabled = true
68+
69+
[smells.function_parameters]
70+
threshold = 4
71+
enabled = true
72+
73+
[smells.function_complexity]
74+
threshold = 5
75+
enabled = true
76+
77+
[smells.duplication]
78+
enabled = true
79+
threshold = 20

0 commit comments

Comments
 (0)