Skip to content

Commit 80172b4

Browse files
gcapizziKieron Browne
authored andcommitted
Add codeclimate configuration file
Exclude fakes and generated files, and tweak some thresholds: | Check | Failures | Threshold | Action | New count | | --------------------------- | -------- | --------- | ----------------- | --------- | | duplication:identical-code | 2 | 100 | Force back to 100 | 2 | | duplication:similar-code | 70 | 100 | Increase to 400 | 4 | | structure:argument_count | 23 | 4 | Increase to 5 | 6 | | structure:file_lines | 1 | 250 | Increase to 500 | 1 | | structure:method_count | 1 | 20 | Increase to 30 | 1 | | structure:method_lines | 8 | 25 | Increase to 50 | 8 | | structure:return_statements | 56 | 4 | Increase to 8 | 5 | Co-authored-by: Giuseppe Capizzi <gcapizzi@vmware.com> Co-authored-by: Kieron Browne <kbrowne@vmware.com>
1 parent d2a00a0 commit 80172b4

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.codeclimate.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
version: "2" # required to adjust maintainability checks
2+
3+
checks:
4+
argument-count:
5+
enabled: true
6+
config:
7+
threshold: 5
8+
file-lines:
9+
enabled: true
10+
config:
11+
threshold: 500
12+
method-count:
13+
enabled: true
14+
config:
15+
threshold: 20
16+
method-lines:
17+
enabled: true
18+
config:
19+
threshold: 50
20+
return-statements:
21+
enabled: true
22+
config:
23+
threshold: 8
24+
similar-code:
25+
enabled: true
26+
config:
27+
threshold: 400
28+
identical-code:
29+
enabled: true
30+
config:
31+
threshold: 100
32+
33+
exclude_patterns:
34+
- "config/"
35+
- "db/"
36+
- "dist/"
37+
- "features/"
38+
- "**/node_modules/"
39+
- "script/"
40+
- "**/spec/"
41+
- "**/test/"
42+
- "**/tests/"
43+
- "Tests/"
44+
- "**/vendor/"
45+
- "**/*_test.go"
46+
- "**/*.d.ts"
47+
- "**/fake/*.go"
48+
- "**/*generated*.go"

0 commit comments

Comments
 (0)