Skip to content

Commit 54cc81c

Browse files
committed
migrate codeclimate config to version 2
1 parent b478855 commit 54cc81c

File tree

1 file changed

+64
-22
lines changed

1 file changed

+64
-22
lines changed

.codeclimate.yml

Lines changed: 64 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,64 @@
1-
---
2-
engines:
3-
duplication:
4-
enabled: true
5-
config:
6-
languages:
7-
- javascript
8-
eslint:
9-
enabled: true
10-
fixme:
11-
enabled: true
12-
ratings:
13-
paths:
14-
- "**.inc"
15-
- "**.js"
16-
- "**.jsx"
17-
- "**.module"
18-
- "**.php"
19-
- "**.py"
20-
- "**.rb"
21-
exclude_paths:
22-
- test
1+
version: "2"
2+
checks:
3+
argument-count:
4+
enabled: true
5+
config:
6+
threshold: 4
7+
complex-logic:
8+
enabled: true
9+
config:
10+
threshold: 4
11+
file-lines:
12+
enabled: true
13+
config:
14+
threshold: 250
15+
method-complexity:
16+
enabled: true
17+
config:
18+
threshold: 5
19+
method-count:
20+
enabled: true
21+
config:
22+
threshold: 20
23+
method-lines:
24+
enabled: true
25+
config:
26+
threshold: 25
27+
nested-control-flow:
28+
enabled: true
29+
config:
30+
threshold: 4
31+
return-statements:
32+
enabled: true
33+
config:
34+
threshold: 4
35+
similar-code:
36+
enabled: true
37+
config:
38+
threshold: #language-specific defaults. overrides affect all languages.
39+
identical-code:
40+
enabled: true
41+
config:
42+
threshold: #language-specific defaults. overrides affect all languages.
43+
plugins:
44+
rubocop:
45+
enabled: true
46+
eslint:
47+
enabled: true
48+
tslint:
49+
enabled: true
50+
config: tslint.json
51+
brakeman:
52+
enabled: true
53+
exclude_patterns:
54+
- "config/"
55+
- "db/"
56+
- "dist/"
57+
- "features/"
58+
- "**/node_modules/"
59+
- "script/"
60+
- "**/spec/"
61+
- "**/test/"
62+
- "**/tests/"
63+
- "**/vendor/"
64+
- "**/*.d.ts"

0 commit comments

Comments
 (0)