-
Notifications
You must be signed in to change notification settings - Fork 0
/
.codeclimate.yml
66 lines (57 loc) · 1.53 KB
/
.codeclimate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: "2"
checks:
# Methods or functions defined with a high number of arguments
argument-count:
config:
threshold: 5
# Boolean logic that may be hard to understand
complex-logic:
config:
threshold: 4
# Excessive lines of code within a single file
file-lines:
config:
threshold: 500
# Functions or methods that may be hard to understand
method-complexity:
config:
threshold: 20
# Classes defined with a high number of functions or methods
method-count:
config:
threshold: 20
# Deeply nested control structures like if or case
nested-control-flow:
config:
threshold: 4
# Functions or methods with a high number of return statements
return-statements:
config:
threshold: 4
# Excessive lines of code within a single function or method
# Disabled because the render function will exceed this threshold many times
method-lines:
enabled: false
# Duplicate code which is not identical but shares the same structure (e.g. variable names may differ)
# Disabled because it gives some false positives
similar-code:
enabled: false
# Duplicate code which is syntactically identical (but may be formatted differently)
# Disabled because it gives some false positives
identical-code:
enabled: false
plugins:
eslint:
enabled: true
config:
config: ~/.eslintrc
nodesecurity:
enabled: true
exclude_patterns:
- "android/"
- "ios/"
- "node_modules/"
- "/test/**/*"
- "**/vendor/"
- "**/*.d.ts"
- "coverage/**/*"