-
Notifications
You must be signed in to change notification settings - Fork 247
/
.codeclimate.yml
44 lines (44 loc) · 1.42 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
version: "2" # required to adjust maintainability checks
checks:
# Methods or functions defined with a high number of arguments
argument-count:
config:
threshold: 6
# 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: 1500
# Functions or methods that may be hard to understand. This is disabled as it doesn't appear to be a reliable metric.
method-complexity:
enabled: false
# Classes defined with a high number of functions or methods.
method-count:
config:
threshold: 40
# Excessive lines of code within a single function or method
method-lines:
config:
threshold: 500
# Deeply nested control structures like if or case
nested-control-flow:
config:
threshold: 4
# Functions or methods with a high number of return statements. This is disabled because Go encourages early returns.
return-statements:
enabled: false
# Duplicate code which is not identical but shares the same structure (e.g. variable names may differ). This is disabled due to too many false trips.
similar-code:
enabled: false
# Code that is identical in structure
identical-code:
config:
threshold: # language-specific defaults. an override will affect all languages.
exclude_patterns:
- "vendor/"
- "static/"
- "t/"
- "images/qr-assets.go"