forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
113 lines (84 loc) · 2.03 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
AllCops:
TargetRubyVersion: 2.3
DisplayCopNames: true
Exclude:
- db/migrate/**
Style/StringLiterals:
Enabled: false
Style/TrailingCommaInLiteral:
Description: 'Checks for trailing comma in array and hash literals.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
EnforcedStyleForMultiline: 'comma'
Style/TrailingCommaInArguments:
Description: 'Checks for trailing comma in arguments.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-params-comma'
EnforcedStyleForMultiline: 'comma'
Layout/MultilineMethodCallBraceLayout:
EnforcedStyle: new_line
Enabled: false
Style/NumericPredicate:
Enabled: false
Naming/FileName:
Enabled: false
Layout/AlignParameters:
Enabled: false
Layout/ClosingParenthesisIndentation:
Enabled: false
Metrics/LineLength:
Max: 120
Metrics/ClassLength:
Max: 250
Metrics/ModuleLength:
Exclude:
- "**/*_spec.rb"
Metrics/BlockLength:
Exclude:
- "**/*_spec.rb"
Style/Documentation:
Enabled: false
Lint/Void:
Enabled: false
Layout/SpaceInsideHashLiteralBraces:
Enabled: false
Style/BlockComments:
Enabled: false
Style/Lambda:
Enabled: false
Style/MultilineBlockChain:
Enabled: false
Layout/IndentArray:
Enabled: true
EnforcedStyle: consistent
# Multi-line method chaining should be done with leading dots.
Layout/DotPosition:
EnforcedStyle: leading
SupportedStyles:
- leading
- trailing
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
SupportedStyles:
- aligned
- indented
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
SupportedStyles:
- aligned
- indented
Style/LineEndConcatenation:
Enabled: false
Style/Alias:
EnforcedStyle: prefer_alias_method
SupportedStyles:
- prefer_alias
- prefer_alias_method
Style/NumericLiterals:
Enabled: false
Style/SignalException:
EnforcedStyle: semantic
Performance/Casecmp:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false