Skip to content

Commit 41b1d76

Browse files
author
Ross Mechanic
authored
Initial code-climate config (#491)
* Initial code-climate config * Try 2 * addressed kseever's comments * Updated exclude_patterns for bandit * Update filepaths * Updated defaults * Kyle's comments
1 parent 9e95fd8 commit 41b1d76

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.codeclimate.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
version: "2" # required to adjust maintainability checks
2+
checks:
3+
argument-count:
4+
config:
5+
threshold: 7
6+
complex-logic:
7+
config:
8+
threshold: 7
9+
file-lines:
10+
config:
11+
threshold: 500
12+
method-complexity:
13+
config:
14+
threshold: 7
15+
method-count:
16+
config:
17+
threshold: 20
18+
method-lines:
19+
config:
20+
threshold: 25
21+
nested-control-flow:
22+
config:
23+
threshold: 4
24+
return-statements:
25+
config:
26+
threshold: 4
27+
similar-code:
28+
config:
29+
threshold: # language-specific defaults. an override will affect all languages.
30+
exclude_patterns:
31+
- "simple_history/tests/"
32+
- "simple_history/registry_tests/"
33+
identical-code:
34+
config:
35+
threshold: # language-specific defaults. an override will affect all languages.
36+
exclude_patterns:
37+
- "simple_history/tests/"
38+
- "simple_history/registry_tests/"
39+
plugins:
40+
bandit:
41+
enabled: true
42+
exclude_patterns:
43+
- "simple_history/tests/"
44+
- "simple_history/registry_tests/"
45+
pep8:
46+
enabled: false
47+
radon:
48+
enabled: true
49+
threshold: "C"
50+
sonar-python:
51+
enabled: true
52+

0 commit comments

Comments
 (0)