Skip to content

Commit f50082a

Browse files
committed
Enable cops in the Layout Department
Those cops don't change how you can express yourself in Ruby, but help you to format your code automatically. - [Layout/AccessModifierIndentation](https://docs.rubocop.org/rubocop/cops_layout.html#layoutaccessmodifierindentation) - [Layout/ArgumentAlignment](https://docs.rubocop.org/rubocop/cops_layout.html#layoutargumentalignment) - [Layout/ClosingParenthesisIndentation](https://docs.rubocop.org/rubocop/cops_layout.html#layoutclosingparenthesisindentation) - [Layout/CommentIndentation](https://docs.rubocop.org/rubocop/cops_layout.html#layoutcommentindentation) - [Layout/ConditionPosition](https://docs.rubocop.org/rubocop/cops_layout.html#layoutconditionposition) - [Layout/DefEndAlignment](https://docs.rubocop.org/rubocop/cops_layout.html#layoutdefendalignment) - [Layout/DotPosition](https://docs.rubocop.org/rubocop/cops_layout.html#layoutdotposition) - [Layout/ElseAlignment](https://docs.rubocop.org/rubocop/cops_layout.html#layoutelsealignment) - [Layout/EmptyLineAfterMagicComment](https://docs.rubocop.org/rubocop/cops_layout.html#layoutemptylineaftermagiccomment) - [Layout/EmptyLineBetweenDefs](https://docs.rubocop.org/rubocop/cops_layout.html#layoutemptylinebetweendefs) - [Layout/EmptyLinesAroundAccessModifier](https://docs.rubocop.org/rubocop/cops_layout.html#layoutemptylinesaroundaccessmodifier) - [Layout/EmptyLinesAroundArguments](https://docs.rubocop.org/rubocop/cops_layout.html#layoutemptylinesaroundarguments) - [Layout/EmptyLinesAroundAttributeAccessor](https://docs.rubocop.org/rubocop/cops_layout.html#layoutemptylinesaroundattributeaccessor) - [Layout/EmptyLinesAroundBlockBody](https://docs.rubocop.org/rubocop/cops_layout.html#layoutemptylinesaroundblockbody) - [Layout/EmptyLinesAroundClassBody](https://docs.rubocop.org/rubocop/cops_layout.html#layoutemptylinesaroundclassbody) - [Layout/EmptyLinesAroundExceptionHandlingKeywords](https://docs.rubocop.org/rubocop/cops_layout.html#layoutemptylinesaroundexceptionhandlingkeywords) - [Layout/EmptyLinesAroundMethodBody](https://docs.rubocop.org/rubocop/cops_layout.html#layoutemptylinesaroundmethodbody) - [Layout/EmptyLinesAroundModuleBody](https://docs.rubocop.org/rubocop/cops_layout.html#layoutemptylinesaroundmodulebody) - [Layout/EndOfLine](https://docs.rubocop.org/rubocop/cops_layout.html#layoutendofline) - [Layout/IndentationConsistency](https://docs.rubocop.org/rubocop/cops_layout.html#layoutindentationconsistency) - [Layout/IndentationStyle](https://docs.rubocop.org/rubocop/cops_layout.html#layoutindentationstyle) - [Layout/InitialIndentation](https://docs.rubocop.org/rubocop/cops_layout.html#layoutinitialindentation) - [Layout/LeadingCommentSpace](https://docs.rubocop.org/rubocop/cops_layout.html#layoutleadingcommentspace) - [Layout/LeadingEmptyLines](https://docs.rubocop.org/rubocop/cops_layout.html#layoutleadingemptylines) - [Layout/LineContinuationLeadingSpace](https://docs.rubocop.org/rubocop/cops_layout.html#layoutlinecontinuationleadingspace) - [Layout/LineContinuationSpacing](https://docs.rubocop.org/rubocop/cops_layout.html#layoutlinecontinuationspacing) - [Layout/SpaceAfterColon](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspaceaftercolon) - [Layout/SpaceAfterComma](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspaceaftercomma) - [Layout/SpaceAfterMethodName](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspaceaftermethodname) - [Layout/SpaceAfterNot](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspaceafternot) - [Layout/SpaceAfterSemicolon](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspaceaftersemicolon) - [Layout/SpaceAroundBlockParameters](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspacearoundblockparameters) - [Layout/SpaceAroundEqualsInParameterDefault](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspacearoundequalsinparameterdefault) - [Layout/SpaceAroundKeyword](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspacearoundkeyword) - [Layout/SpaceAroundMethodCallOperator](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspacearoundmethodcalloperator) - [Layout/SpaceAroundOperators](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspacearoundoperators) - [Layout/SpaceBeforeBlockBraces](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspacebeforeblockbraces) - [Layout/SpaceBeforeBrackets](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspacebeforebrackets) - [Layout/SpaceBeforeComma](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspacebeforecomma) - [Layout/SpaceBeforeComment](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspacebeforecomment) - [Layout/SpaceBeforeFirstArg](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspacebeforefirstarg) - [Layout/SpaceBeforeSemicolon](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspacebeforesemicolon) - [Layout/SpaceInLambdaLiteral](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspaceinlambdaliteral) - [Layout/SpaceInsideArrayLiteralBrackets](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspaceinsidearrayliteralbrackets) - [Layout/SpaceInsideArrayPercentLiteral](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspaceinsidearraypercentliteral) - [Layout/SpaceInsideArrayPercentLiteral](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspaceinsidearraypercentliteral) - [Layout/SpaceInsideBlockBraces](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspaceinsideblockbraces) - [Layout/SpaceInsideHashLiteralBraces](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspaceinsidehashliteralbraces) - [Layout/SpaceInsideParens](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspaceinsideparens) - [Layout/SpaceInsidePercentLiteralDelimiters](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspaceinsidepercentliteraldelimiters) - [Layout/SpaceInsideRangeLiteral](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspaceinsiderangeliteral) - [Layout/SpaceInsideReferenceBrackets](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspaceinsidereferencebrackets) - [Layout/SpaceInsideStringInterpolation](https://docs.rubocop.org/rubocop/cops_layout.html#layoutspaceinsidestringinterpolation) - [Layout/TrailingEmptyLines](https://docs.rubocop.org/rubocop/cops_layout.html#layouttrailingemptylines) - [Layout/TrailingWhitespace](https://docs.rubocop.org/rubocop/cops_layout.html#layouttrailingwhitespace)
1 parent d264927 commit f50082a

File tree

2 files changed

+60
-220
lines changed

2 files changed

+60
-220
lines changed

rubocop.yml

Lines changed: 3 additions & 163 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ Gemspec/RequiredRubyVersion:
4141

4242

4343
# Layout Department
44-
Layout/AccessModifierIndentation:
45-
Enabled: false
46-
4744
Layout/ArgumentAlignment:
48-
Enabled: false
4945
EnforcedStyle: with_fixed_indentation
5046

5147
Layout/ArrayAlignment:
@@ -70,73 +66,19 @@ Layout/CaseIndentation:
7066
Layout/ClosingHeredocIndentation:
7167
Enabled: false
7268

73-
Layout/ClosingParenthesisIndentation:
74-
Enabled: false
75-
76-
Layout/CommentIndentation:
77-
Enabled: false
78-
79-
Layout/ConditionPosition:
80-
Enabled: false
81-
82-
Layout/DefEndAlignment:
83-
Enabled: false
84-
85-
Layout/DotPosition:
86-
Enabled: false
87-
88-
Layout/ElseAlignment:
89-
Enabled: false
90-
9169
Layout/EmptyComment:
9270
Enabled: false
9371

9472
Layout/EmptyLineAfterGuardClause:
9573
Enabled: false
9674

97-
Layout/EmptyLineAfterMagicComment:
98-
Enabled: false
99-
100-
Layout/EmptyLineBetweenDefs:
101-
Enabled: false
102-
10375
Layout/EmptyLines:
10476
Enabled: false
10577

106-
Layout/EmptyLinesAroundAccessModifier:
107-
Enabled: false
108-
109-
Layout/EmptyLinesAroundArguments:
110-
Enabled: false
111-
112-
Layout/EmptyLinesAroundAttributeAccessor:
113-
Enabled: false
114-
115-
Layout/EmptyLinesAroundBeginBody:
116-
Enabled: false
117-
118-
Layout/EmptyLinesAroundBlockBody:
119-
Enabled: false
120-
121-
Layout/EmptyLinesAroundClassBody:
122-
Enabled: false
123-
124-
Layout/EmptyLinesAroundExceptionHandlingKeywords:
125-
Enabled: false
126-
127-
Layout/EmptyLinesAroundMethodBody:
128-
Enabled: false
129-
130-
Layout/EmptyLinesAroundModuleBody:
131-
Enabled: false
132-
13378
Layout/EndAlignment:
13479
Enabled: false
13580
EnforcedStyleAlignWith: variable
13681

137-
Layout/EndOfLine:
138-
Enabled: false
139-
14082
Layout/ExtraSpacing:
14183
Enabled: false
14284

@@ -168,29 +110,11 @@ Layout/HashAlignment:
168110
Layout/HeredocIndentation:
169111
Enabled: false
170112

171-
Layout/IndentationConsistency:
172-
Enabled: false
173-
174-
Layout/IndentationStyle:
175-
Enabled: false
176-
177-
Layout/IndentationWidth:
178-
Enabled: false
179-
180-
Layout/InitialIndentation:
181-
Enabled: false
182-
183-
Layout/LeadingCommentSpace:
184-
Enabled: false
185-
186-
Layout/LeadingEmptyLines:
187-
Enabled: false
188-
189113
Layout/LineContinuationLeadingSpace:
190-
Enabled: false
114+
Enabled: true
191115

192116
Layout/LineContinuationSpacing:
193-
Enabled: false
117+
Enabled: true
194118

195119
Layout/LineEndStringConcatenationIndentation:
196120
Enabled: false
@@ -208,9 +132,6 @@ Layout/MultilineArrayBraceLayout:
208132
Layout/MultilineArrayLineBreaks:
209133
AllowMultilineFinalElement: true
210134

211-
Layout/MultilineBlockLayout:
212-
Enabled: false
213-
214135
Layout/MultilineHashBraceLayout:
215136
Enabled: false
216137

@@ -236,89 +157,8 @@ Layout/ParameterAlignment:
236157
Layout/RescueEnsureAlignment:
237158
Enabled: false
238159

239-
Layout/SpaceAfterColon:
240-
Enabled: false
241-
242-
Layout/SpaceAfterComma:
243-
Enabled: false
244-
245-
Layout/SpaceAfterMethodName:
246-
Enabled: false
247-
248-
Layout/SpaceAfterNot:
249-
Enabled: false
250-
251-
Layout/SpaceAfterSemicolon:
252-
Enabled: false
253-
254-
Layout/SpaceAroundBlockParameters:
255-
Enabled: false
256-
257-
Layout/SpaceAroundEqualsInParameterDefault:
258-
Enabled: false
259-
260-
Layout/SpaceAroundKeyword:
261-
Enabled: false
262-
263-
Layout/SpaceAroundMethodCallOperator:
264-
Enabled: false
265-
266-
Layout/SpaceAroundOperators:
267-
Enabled: false
268-
269-
Layout/SpaceBeforeBlockBraces:
270-
Enabled: false
271-
272160
Layout/SpaceBeforeBrackets:
273-
Enabled: false
274-
275-
Layout/SpaceBeforeComma:
276-
Enabled: false
277-
278-
Layout/SpaceBeforeComment:
279-
Enabled: false
280-
281-
Layout/SpaceBeforeFirstArg:
282-
Enabled: false
283-
284-
Layout/SpaceBeforeSemicolon:
285-
Enabled: false
286-
287-
Layout/SpaceInLambdaLiteral:
288-
Enabled: false
289-
290-
Layout/SpaceInsideArrayLiteralBrackets:
291-
Enabled: false
292-
293-
Layout/SpaceInsideArrayPercentLiteral:
294-
Enabled: false
295-
296-
Layout/SpaceInsideBlockBraces:
297-
Enabled: false
298-
299-
Layout/SpaceInsideHashLiteralBraces:
300-
Enabled: false
301-
302-
Layout/SpaceInsideParens:
303-
Enabled: false
304-
305-
Layout/SpaceInsidePercentLiteralDelimiters:
306-
Enabled: false
307-
308-
Layout/SpaceInsideRangeLiteral:
309-
Enabled: false
310-
311-
Layout/SpaceInsideReferenceBrackets:
312-
Enabled: false
313-
314-
Layout/SpaceInsideStringInterpolation:
315-
Enabled: false
316-
317-
Layout/TrailingEmptyLines:
318-
Enabled: false
319-
320-
Layout/TrailingWhitespace:
321-
Enabled: false
161+
Enabled: true
322162

323163

324164
# Lint Department

0 commit comments

Comments
 (0)