forked from 18F/culper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.codeclimate.yml
48 lines (48 loc) · 1.21 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
version: "2"
checks:
# this repository has multiple languages each with different common practices.
# at the moment if we need to adjust the defaults it occurs globally amongst all
# languages.
similar-code:
# turned off due to false positives in regards to `defaultProps`, `constructor`, and several other use cases
enabled: false
file-lines:
config:
# compromise between JSX and Go files
threshold: 750
method-count:
config:
# several of our validation logic classes have methods per branch/property
threshold: 50
method-lines:
config:
# some JSX render methods exceed this due to the nature of the form
threshold: 255
return-statements:
config:
# some Go sections have ~10 error handling statements where the intent is to fail hard+fast
threshold: 10
plugins:
eslint:
enabled: true
channel: "eslint-4"
csslint:
enabled: true
exclude_paths:
- "bin/"
- "coverage/"
- "doc/"
- "hooks/"
- "lib/"
- "src/**/*.test.jsx"
- "src/**/*.test.js"
- "src/config/locales/"
- "*.json"
- "**/*_test.go"
- "**/vendor/"
- "**/node_modules/"
- "specs/"
- "dist/"
- "api/migrations/"
- "api/templates/"
- "api/testdata/"