forked from 18F/identity-idp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.codeclimate.yml
97 lines (94 loc) · 2.08 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: "2" # required to adjust maintainability checks
checks:
argument-count:
config:
threshold: 4
complex-logic:
config:
threshold: 4
file-lines:
enabled: false
method-complexity:
config:
threshold: 5
method-count:
enabled: false
method-lines:
enabled: false
nested-control-flow:
config:
threshold: 4
return-statements:
config:
threshold: 4
similar-code:
enabled: false
config:
threshold: # language-specific defaults. an override will affect all languages.
identical-code:
enabled: false
config:
threshold: # language-specific defaults. an override will affect all languages.
plugins:
brakeman:
enabled: true
exclude_patterns:
# Excluding User Flows tools since these are not loaded
# except when explicitly called from the User Flow rake tasks
- 'lib/user_flow_exporter.rb'
- 'lib/rspec/formatters/user_flow_formatter.rb'
bundler-audit:
enabled: true
coffeelint:
enabled: true
csslint:
enabled: true
duplication:
enabled: true
config:
languages:
ruby:
javascript:
mass_threshold: 50
exclude_patterns:
- 'spec/**/*'
- 'node_modules/**/*'
- 'db/schema.rb'
- 'app/forms/password_form.rb'
- 'lib/user_flow_exporter.rb'
- 'lib/rspec/formatters/user_flow_formatter.rb'
eslint:
enabled: true
fixme:
enabled: true
exclude_patterns:
- 'public/build/bundle.js'
- '.codeclimate.yml'
config:
strings:
# Removed TODO from this list, as we want to allow TODOs in the codebase
- FIXME
- HACK
- BUG
- XXX
pep8:
enabled: true
reek:
enabled: true
exclude_patterns:
- 'spec/**/*'
- 'db/migrate/*'
- 'lib/user_flow_exporter.rb'
- 'lib/rspec/formatters/user_flow_formatter.rb'
rubocop:
enabled: true
scss-lint:
enabled: true
exclude_patterns:
- 'db/schema.rb'
- 'node_modules/'
- 'lib/rspec/formatters/user_flow_formatter.rb'
- 'lib/user_flow_exporter.rb'
- 'scripts/load_testing/'
- 'spec/'
- 'tmp/'