-
Notifications
You must be signed in to change notification settings - Fork 329
/
.rubocop.yml
75 lines (56 loc) · 1.26 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.5
Exclude:
- 'gemfiles/Gemfile*.lock'
- 'bin/*'
- 'lib/generators/**/templates/**/*'
- 'vendor/bundle/**/*'
- 'test/mock_app/**/*'
# we allow long lines yet, because there are many to fix, and it would enforce to create long lines
Style/IfUnlessModifier:
Enabled: false
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Lint/UnusedMethodArgument:
Enabled: false
Metrics/ClassLength:
Max: 500
CountComments: false
Metrics/LineLength:
Exclude:
- 'test/**/*'
Metrics/ModuleLength:
Max: 700
CountComments: false
Metrics/ParameterLists:
CountKeywordArgs: false
Naming/FileName:
Exclude:
- 'Gemfile'
- 'Rakefile'
- 'test/mock_app/Rakefile'
Performance/RedundantMerge:
MaxKeyValuePairs: 1
Rails:
Enabled: true
Rails/ApplicationRecord:
Exclude:
- 'test/**/*'
Rails/DynamicFindBy:
Whitelist:
- find_by_name
- find_by_names
Style/BracesAroundHashParameters:
EnforcedStyle: context_dependent
Style/FormatString:
EnforcedStyle: percent
Style/FrozenStringLiteralComment:
Enabled: false
Style/HashSyntax:
Enabled: false # FIXME
Style/SingleLineBlockParams:
Enabled: false
Style/SingleLineMethods:
Exclude:
- 'test/**/*'