forked from OSC/ondemand
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
46 lines (42 loc) · 859 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
41
42
43
44
45
46
# style
Style/MultilineBlockChain:
Enabled: false
Style/HashSyntax:
EnforcedStyle: 'no_mixed_keys'
Style/ClassAndModuleChildren:
EnforcedStyle: 'nested'
Style/WordArray:
EnforcedStyle: 'brackets'
Style/SymbolArray:
EnforcedStyle: 'brackets'
# layout
Layout/HashAlignment:
EnforcedColonStyle: table
EnforcedHashRocketStyle: table
# metrics
Metrics/ModuleLength:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/MethodLength:
Max: 20
CountAsOne:
- 'heredoc'
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Max: 10
Metrics/AbcSize:
Max: 30
<% if Gem.loaded_specs.has_key?('rspec') %>
# rspec
require: 'rubocop-rspec'
RSpec/MultipleMemoizedHelpers:
Max: 10
RSpec/MultipleExpectations:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/MessageSpies:
EnforcedStyle: receive
<% end %>