-
Notifications
You must be signed in to change notification settings - Fork 3
/
.rubocop.yml
56 lines (56 loc) · 1.7 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
#--------1---------2---------3---------4---------5---------6---------7---------8---------9---------0
# The idea is to bring this file in line with the default configuration:
# https://github.com/rubocop-hq/rubocop/blob/master/config/default.yml
# We're not quite at a point to do that yet.
inherit_from:
- .rubocop-performance.yml
- .rubocop-rspec.yml
AllCops:
EnabledByDefault: true
NewCops: enable
TargetRubyVersion: 2.5
Bundler/DuplicatedGem:
Enabled: false
Bundler/GemComment:
Enabled: false
Layout/DotPosition:
EnforcedStyle: trailing
Layout/FirstArgumentIndentation:
IndentationWidth: 4
Layout/FirstHashElementIndentation:
IndentationWidth: 4
Layout/FirstParameterIndentation:
IndentationWidth: 4
Layout/LineLength:
IgnoredPatterns:
- '^\s*# http' # allow URLs, standalone, in comments
Layout/MultilineMethodCallBraceLayout:
EnforcedStyle: same_line
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
IndentationWidth: 4
Layout/MultilineMethodDefinitionBraceLayout:
EnforcedStyle: same_line
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
IndentationWidth: 4
Layout/SpaceInsideStringInterpolation:
EnforcedStyle: space
Lint/ConstantResolution:
Enabled: false
Naming/MemoizedInstanceVariableName:
EnforcedStyleForLeadingUnderscores: required
Style/Alias:
EnforcedStyle: prefer_alias_method
Style/DisableCopsWithinSourceCodeDirective:
Enabled: false
Style/DoubleNegation: # team prefers !!var over !var.nil? syntax, so we are leaving this cop off
Enabled: false
Style/MethodDefParentheses:
EnforcedStyle: require_no_parentheses_except_multiline
Style/Copyright:
Enabled: false
Style/DocumentationMethod:
Enabled: false
Style/MissingElse:
Enabled: false