-
Notifications
You must be signed in to change notification settings - Fork 0
/
.codeclimate.yml
62 lines (51 loc) · 1.78 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
---
# Code Climate Settings
# Docs: https://docs.codeclimate.com/docs/advanced-configuration
version: "2"
checks:
argument-count: # Methods or functions defined with a high number of arguments
enabled: true
config:
threshold: 5 # Default is 4
complex-logic: # Boolean logic that may be hard to understand
enabled: true
config:
threshold: 4 # Default is 4
file-lines: # Excessive lines of code within a single file
enabled: true
config:
threshold: 300 # Default is 250
method-complexity: # Functions or methods that may be hard to understand
enabled: true
config:
threshold: 15 # Default is 5
method-count: # Classes defined with a high number of functions or methods
enabled: true
config:
threshold: 20 # Default is 20
method-lines: # Excessive lines of code within a single function or method
enabled: true
config:
threshold: 75 # Default is 25
nested-control-flow: # Deeply nested control structures like "if" or "case"
enabled: true
config:
threshold: 4 # Default is 4
return-statements: # Functions or methods with a high number of return statements
enabled: true
config:
threshold: 6 # Default is 4
identical-code: # Duplicate code which is syntactically identical (but may be formatted differently)
enabled: true
config:
threshold: 90 # Default for JS and TS is 45 https://docs.codeclimate.com/docs/duplication
similar-code: # Duplicate code which is not identical but shares the same structure (e.g. variable names may differ)
enabled: true
config:
threshold: 180 # Default for JS and TS is 45 https://docs.codeclimate.com/docs/duplication
plugins:
eslint:
enabled: true
channel: "eslint-7"
fixme:
enabled: true