-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.codeclimate.yml
38 lines (34 loc) · 1.15 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
version: "2" # required to adjust maintainability checks
prepare:
fetch:
# RuboCop 1.31.1 - which is the latest version at CodeClimate won't
# understand that the file is to be downloaded... so we'll overwrite it:
- url: https://raw.githubusercontent.com/IcaliaLabs/guides/efd6d04563846dda160038845a1151134d8ac072/best_practices/code-analysis/rubocop/1.9.1/rubocop.yml
path: .rubocop.yml
plugins:
brakeman:
enabled: true
eslint:
enabled: true
rubocop:
enabled: true
channel: rubocop-1-31-0
checks:
# Let's disable all cops that are already implemented as maintainability
# checks on CodeClimate:
Rubocop/Metrics/MethodLength: { enabled: false } # See "method-lines"
Rubocop/Metrics/ParameterLists: { enabled: false } # See "argument-count"
Rubocop/Metrics/PerceivedComplexity: { enabled: false } # See "method-complexity"
checks:
method-lines:
config:
threshold: 10 # Compromise between Sandy Metz's 5 lines and CC's 20 lines
exclude_patterns:
- "config/"
- "db/"
- "script/"
- "**/spec/"
- "**/vendor/"
- "bin/bundle"
- "bin/rails"
- "bin/rake"