-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
60 lines (48 loc) · 1.07 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
# .rubocop.yml
# Use the default configuration as a base
#inherit_from:
# - https://raw.githubusercontent.com/rubocop-hq/rubocop/master/config/default.yml
# Customize the configuration to your liking
AllCops:
Exclude:
- 'vendor/**/*'
- 'db/**/*'
- 'config/**/*'
- 'spec/**/*'
- 'test/**/*'
- 'Fastfile'
- 'Pluginfile'
- 'Guardfile'
- 'Rakefile'
- 'Gemfile'
- 'Gemfile.lock'
Style/Documentation:
Enabled: true
ParameterIndentWidth: 2
ReturnIndent: true
TreatCommentsAsGroupSeparators: true
UseYARD: true
Style/FrozenStringLiteralComment:
Enabled: true
Style/RedundantParentheses:
Enabled: true
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/TrailingCommaInHashLiteral:
Enabled: true
EnforcedStyleForMultiline: comma
Layout/IndentationConsistency:
Enabled: true
EnforcedStyle: indented_internal_methods
Metrics/BlockLength:
Enabled: true
Exclude:
- 'spec/**/*'
Max: 20
Metrics/LineLength:
Enabled: true
Max: 120
Lint/UnusedMethodArgument:
Enabled: true
Lint/UselessAssignment:
Enabled: true