-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
30 lines (25 loc) · 862 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
# Styles are inherited from Mad Rubocop
inherit_gem:
mad_rubocop: .rubocop.yml
# Styles that are modified from the defaults
AllCops:
TargetRubyVersion: 2.3
Style/BlockDelimiters:
Description: >-
Avoid using {...} for multi-line blocks (multiline chaining is
always ugly).
Prefer {...} over do...end for single-line blocks.
StyleGuide: 'https://git.moneydesktop.com/dev/ruby-style-guide#single-line-blocks'
Exclude:
- 'spec/**/*'
Style/HashSyntax:
Description: >-
Prefer Ruby 1.8 hash syntax { :a => 1, :b => 2 }
over 1.9 syntax { a: 1, b: 2 }.
StyleGuide: 'https://git.moneydesktop.com/dev/ruby-style-guide#hash-literals'
EnforcedStyle: hash_rockets
Exclude:
- 'Gemfile'
Layout/SpaceAroundOperators:
Exclude:
- 'mx-aggregation_status.gemspec'