forked from openaustralia/theyvoteforyou
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
49 lines (38 loc) · 1.49 KB
/
.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
47
48
49
# To keep things simple, we're using a whitelist approach
# Add Cops gradually as needed
AllCops:
DisabledByDefault: true
Exclude:
- db/schema.rb
Style/HashSyntax:
StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-literals
EnforcedStyle: ruby19
Style/EmptyLines:
StyleGuide: https://github.com/bbatsov/ruby-style-guide#two-or-more-empty-lines
Enabled: true
Style/EmptyLineBetweenDefs:
StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods
Enabled: true
Style/EmptyLinesAroundAccessModifier:
StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-around-access-modifier
Enabled: true
Style/EmptyLinesAroundBeginBody:
StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-around-bodies
Enabled: true
Style/EmptyLinesAroundBlockBody:
StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-around-bodies
Enabled: true
Style/EmptyLinesAroundClassBody:
StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-around-bodies
Enabled: true
Style/EmptyLinesAroundExceptionHandlingKeywords:
StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-around-bodies
Enabled: true
Style/EmptyLinesAroundMethodBody:
StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-around-bodies
Enabled: true
Style/EmptyLinesAroundModuleBody:
StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-around-bodies
Enabled: true
Style/RedundantReturn:
Enabled: true