-
Notifications
You must be signed in to change notification settings - Fork 116
/
Copy path.codeclimate.yml
72 lines (67 loc) · 1.25 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
67
68
69
70
71
72
version: "2"
languages:
Python: true
Javascript: true
checks:
argument-count:
enabled: true
config:
threshold: 6
complex-logic:
enabled: true
config:
threshold: 8
file-lines:
enabled: true
config:
threshold: 250
method-complexity:
enabled: true
config:
threshold: 15
method-count:
enabled: true
config:
threshold: 20
method-lines:
enabled: true
config:
threshold: 45
nested-control-flow:
enabled: true
config:
threshold: 5
return-statements:
enabled: true
config:
threshold: 3
similar-code:
enabled: false
engines:
pep8:
enabled: true
checks:
# Disable line length (> 79) check
E501:
enabled: false
# Disable Line break occurred before a binary operator
W503:
enabled: false
# Disable Whitespace before ':'
E203:
enabled: false
radon:
enabled: true
config:
python_version: 3
threshold: "D"
ratings:
paths:
- "**.py"
exclude_paths:
- "*/site-packages/*"
- "usaspending_api/api_contracts/*"
- "usaspending_api/api_docs/*"
- "usaspending_api/*/migrations/*"
- "usaspending_api/*/tests/*"
- "usaspending_api/static_doc_files/js/*"