-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.rubocop.yml
55 lines (42 loc) · 1.02 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
50
51
52
53
54
55
AllCops:
TargetRubyVersion: 3.1
Exclude:
- 'gemfiles/**/*'
Layout/AccessModifierIndentation:
Enabled: false
Layout/CommentIndentation:
Enabled: false
Layout/IndentationConsistency:
Enabled: false
Style/AccessModifierDeclarations:
Enabled: false
Naming/MethodParameterName:
Enabled: false
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
Naming/FileName:
Exclude:
- 'lib/active_remote-cached.rb'
Metrics/ModuleLength:
Exclude:
- 'lib/active_remote/cached.rb' # this module is big
Style/Documentation:
Enabled: false
Metrics/MethodLength:
Enabled: false
Naming/VariableNumber:
Enabled: false
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'
# Use lambdas instead of stabbys
Style/Lambda:
EnforcedStyle: lambda
Style/MissingRespondToMissing:
Enabled: false