-
Notifications
You must be signed in to change notification settings - Fork 3
/
.rubocop.yml
40 lines (32 loc) · 947 Bytes
/
.rubocop.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
require:
- rubocop-rails
- rubocop-minitest
- rubocop-rake
AllCops:
NewCops: enable
# 2.0 was dropped in rubocop 0.50
TargetRubyVersion: 2.1
Exclude:
- gemfiles/*
Rails/RakeEnvironment: { Enabled: false }
Bundler/OrderedGems: { Enabled: false }
Minitest/MultipleAssertions: { Enabled: false }
# maybe later
Style/StringLiterals: { Enabled: false }
Style/Documentation: { Enabled: false }
# we allow older rubies
Gemspec/RequiredRubyVersion: { Enabled: false }
# rails app is for tests
Rails/RenderInline: { Enabled: false }
Rails/ApplicationController: { Enabled: false }
Metrics/BlockLength:
Max: 30
Exclude:
- spec/*
Metrics/MethodLength: { Max: 30 }
Metrics/ModuleLength: { Max: 150 }
Metrics/ClassLength: { Max: 150 }
Metrics/AbcSize: { Enabled: false }
Metrics/CyclomaticComplexity: { Max: 15 }
Metrics/PerceivedComplexity: { Max: 15 }
Style/HashConversion: { Enabled: false } # ruby 2.0 does not have ary.to_h