rubocop-config-captive 1.0.0.pre.alpha.3 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +0 -4
- data/README.md +1 -1
- data/config/__private__/README.md +1 -0
- data/config/__private__/rubocop-airbnb.yml +96 -0
- data/config/__private__/rubocop-bundler.yml +9 -0
- data/config/__private__/rubocop-gemspec.yml +13 -0
- data/config/__private__/rubocop-layout.yml +562 -0
- data/config/__private__/rubocop-lint.yml +306 -0
- data/config/__private__/rubocop-metrics.yml +44 -0
- data/config/__private__/rubocop-naming.yml +89 -0
- data/config/__private__/rubocop-performance.yml +126 -0
- data/config/__private__/rubocop-rails.yml +222 -0
- data/config/__private__/rubocop-rspec.yml +327 -0
- data/config/__private__/rubocop-security.yml +18 -0
- data/config/__private__/rubocop-style.yml +1001 -0
- data/config/default.yml +54 -0
- data/config/rubocop-bundler.yml +3 -0
- data/config/rubocop-captive.yml +33 -0
- data/config/rubocop-capybara.yml +2 -0
- data/config/rubocop-gemspec.yml +3 -0
- data/config/rubocop-layout.yml +45 -0
- data/config/rubocop-lint.yml +3 -0
- data/config/rubocop-metrics.yml +3 -0
- data/config/rubocop-naming.yml +3 -0
- data/config/rubocop-performance.yml +3 -0
- data/config/rubocop-rails.yml +3 -0
- data/config/rubocop-rake.yml +2 -0
- data/config/rubocop-rspec.yml +3 -0
- data/config/rubocop-security.yml +3 -0
- data/config/rubocop-style.yml +3 -0
- data/lib/rubocop/captive/version.rb +8 -0
- data/lib/rubocop-captive.rb +1 -1
- data/rubocop-config-captive.gemspec +5 -2
- metadata +33 -4
@@ -0,0 +1,562 @@
|
|
1
|
+
### ⚠️ GENERATED WITH `script/pull`. DO NOT EDIT MANUALLY. ###
|
2
|
+
# Type 'Style' (166):
|
3
|
+
# Supports --auto-correct
|
4
|
+
Layout/AccessModifierIndentation:
|
5
|
+
Description: Check indentation of private/protected visibility modifiers.
|
6
|
+
# Airbnb: https://github.com/airbnb/ruby#access-modifiers
|
7
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#indent-public-private-protected
|
8
|
+
Enabled: true
|
9
|
+
EnforcedStyle: indent
|
10
|
+
SupportedStyles:
|
11
|
+
- outdent
|
12
|
+
- indent
|
13
|
+
|
14
|
+
# Supports --auto-correct
|
15
|
+
Layout/ArrayAlignment:
|
16
|
+
Description: Align the elements of an array literal if they span more than one line.
|
17
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#align-multiline-arrays
|
18
|
+
Enabled: true
|
19
|
+
|
20
|
+
# Supports --auto-correct
|
21
|
+
Layout/HashAlignment:
|
22
|
+
Description: Align the elements of a hash literal if they span more than one line.
|
23
|
+
Enabled: true
|
24
|
+
EnforcedHashRocketStyle: key
|
25
|
+
EnforcedColonStyle: key
|
26
|
+
EnforcedLastArgumentHashStyle: always_inspect
|
27
|
+
SupportedLastArgumentHashStyles:
|
28
|
+
- always_inspect
|
29
|
+
- always_ignore
|
30
|
+
- ignore_implicit
|
31
|
+
- ignore_explicit
|
32
|
+
|
33
|
+
# Supports --auto-correct
|
34
|
+
Layout/ParameterAlignment:
|
35
|
+
Description: Align the parameters of a method call if they span more than one line.
|
36
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-double-indent
|
37
|
+
Enabled: true
|
38
|
+
EnforcedStyle: with_first_parameter
|
39
|
+
SupportedStyles:
|
40
|
+
- with_first_parameter
|
41
|
+
- with_fixed_indentation
|
42
|
+
|
43
|
+
# Supports --auto-correct
|
44
|
+
Layout/BlockAlignment:
|
45
|
+
Description: Align block ends correctly.
|
46
|
+
Enabled: true
|
47
|
+
|
48
|
+
# Supports --auto-correct
|
49
|
+
Layout/BlockEndNewline:
|
50
|
+
Description: Put end statement of multiline block on its own line.
|
51
|
+
Enabled: true
|
52
|
+
|
53
|
+
# Supports --auto-correct
|
54
|
+
Layout/CaseIndentation:
|
55
|
+
Description: Indentation of when in a case/when/[else/]end.
|
56
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#indent-when-to-case
|
57
|
+
Enabled: true
|
58
|
+
EnforcedStyle: case
|
59
|
+
IndentOneStep: false
|
60
|
+
|
61
|
+
Layout/ClassStructure:
|
62
|
+
Enabled: false
|
63
|
+
Categories:
|
64
|
+
module_inclusion:
|
65
|
+
- include
|
66
|
+
- prepend
|
67
|
+
- extend
|
68
|
+
ExpectedOrder:
|
69
|
+
- module_inclusion
|
70
|
+
- constants
|
71
|
+
- public_class_methods
|
72
|
+
- initializer
|
73
|
+
- instance_methods
|
74
|
+
- protected_methods
|
75
|
+
- private_methods
|
76
|
+
|
77
|
+
Layout/ClosingHeredocIndentation:
|
78
|
+
Enabled: false
|
79
|
+
|
80
|
+
# Supports --auto-correct
|
81
|
+
Layout/ClosingParenthesisIndentation:
|
82
|
+
Description: Checks the indentation of hanging closing parentheses.
|
83
|
+
Enabled: true
|
84
|
+
|
85
|
+
# Supports --auto-correct
|
86
|
+
Layout/CommentIndentation:
|
87
|
+
Description: Indentation of comments.
|
88
|
+
Enabled: true
|
89
|
+
|
90
|
+
Layout/ConditionPosition:
|
91
|
+
Description: Checks for condition placed in a confusing position relative to the keyword.
|
92
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#same-line-condition
|
93
|
+
Enabled: true
|
94
|
+
|
95
|
+
# Supports --auto-correct
|
96
|
+
Layout/DefEndAlignment:
|
97
|
+
Description: Align ends corresponding to defs correctly.
|
98
|
+
Enabled: true
|
99
|
+
EnforcedStyleAlignWith: start_of_line
|
100
|
+
AutoCorrect: false
|
101
|
+
|
102
|
+
# Use trailing commas, because there are safer in ruby.
|
103
|
+
Layout/DotPosition:
|
104
|
+
Enabled: true
|
105
|
+
EnforcedStyle: trailing
|
106
|
+
|
107
|
+
# Supports --auto-correct
|
108
|
+
Layout/ElseAlignment:
|
109
|
+
Description: Align elses and elsifs correctly.
|
110
|
+
Enabled: true
|
111
|
+
|
112
|
+
Layout/EmptyComment:
|
113
|
+
Description: 'Checks empty comment.'
|
114
|
+
Enabled: true
|
115
|
+
|
116
|
+
Layout/EmptyLineAfterMagicComment:
|
117
|
+
Enabled: true
|
118
|
+
|
119
|
+
# Supports --auto-correct
|
120
|
+
Layout/EmptyLineBetweenDefs:
|
121
|
+
Description: Use empty lines between defs.
|
122
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#empty-lines-between-methods
|
123
|
+
Enabled: true
|
124
|
+
AllowAdjacentOneLineDefs: false
|
125
|
+
|
126
|
+
# Supports --auto-correct
|
127
|
+
Layout/EmptyLines:
|
128
|
+
Description: Don't use several empty lines in a row.
|
129
|
+
Enabled: true
|
130
|
+
|
131
|
+
Layout/EmptyLineAfterGuardClause:
|
132
|
+
Enabled: false
|
133
|
+
|
134
|
+
# Supports --auto-correct
|
135
|
+
Layout/EmptyLinesAroundAccessModifier:
|
136
|
+
Description: Keep blank lines around access modifiers.
|
137
|
+
Enabled: true
|
138
|
+
|
139
|
+
Layout/EmptyLinesAroundArguments:
|
140
|
+
Description: "Keeps track of empty lines around method arguments."
|
141
|
+
Enabled: false
|
142
|
+
|
143
|
+
Layout/EmptyLinesAroundBeginBody:
|
144
|
+
Enabled: true
|
145
|
+
|
146
|
+
# Supports --auto-correct
|
147
|
+
Layout/EmptyLinesAroundBlockBody:
|
148
|
+
Description: Keeps track of empty lines around block bodies.
|
149
|
+
Enabled: true
|
150
|
+
EnforcedStyle: no_empty_lines
|
151
|
+
SupportedStyles:
|
152
|
+
- empty_lines
|
153
|
+
- no_empty_lines
|
154
|
+
|
155
|
+
# Supports --auto-correct
|
156
|
+
Layout/EmptyLinesAroundClassBody:
|
157
|
+
Description: Keeps track of empty lines around class bodies.
|
158
|
+
Enabled: true
|
159
|
+
EnforcedStyle: no_empty_lines
|
160
|
+
SupportedStyles:
|
161
|
+
- beginning_only
|
162
|
+
- empty_lines
|
163
|
+
- end_only
|
164
|
+
- no_empty_lines
|
165
|
+
|
166
|
+
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
167
|
+
Enabled: false
|
168
|
+
|
169
|
+
# Supports --auto-correct
|
170
|
+
Layout/EmptyLinesAroundMethodBody:
|
171
|
+
Description: Keeps track of empty lines around method bodies.
|
172
|
+
Enabled: true
|
173
|
+
|
174
|
+
# Supports --auto-correct
|
175
|
+
Layout/EmptyLinesAroundModuleBody:
|
176
|
+
Description: Keeps track of empty lines around module bodies.
|
177
|
+
Enabled: true
|
178
|
+
EnforcedStyle: no_empty_lines
|
179
|
+
SupportedStyles:
|
180
|
+
- empty_lines
|
181
|
+
- no_empty_lines
|
182
|
+
|
183
|
+
# Supports --auto-correct
|
184
|
+
Layout/EndAlignment:
|
185
|
+
Description: Align ends correctly.
|
186
|
+
# The value `keyword` means that `end` should be aligned with the matching
|
187
|
+
# keyword (if, while, etc.).
|
188
|
+
# The value `variable` means that in assignments, `end` should be aligned
|
189
|
+
# with the start of the variable on the left hand side of `=`. In all other
|
190
|
+
# situations, `end` should still be aligned with the keyword.
|
191
|
+
# The value `start_of_line` means that `end` should be aligned with the start
|
192
|
+
# of the line which the matching keyword appears on.
|
193
|
+
Enabled: true
|
194
|
+
EnforcedStyleAlignWith: keyword
|
195
|
+
AutoCorrect: false
|
196
|
+
|
197
|
+
Layout/EndOfLine:
|
198
|
+
Description: Use Unix-style line endings.
|
199
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#crlf
|
200
|
+
Enabled: false
|
201
|
+
|
202
|
+
# Supports --auto-correct
|
203
|
+
Layout/ExtraSpacing:
|
204
|
+
Description: Do not use unnecessary spacing.
|
205
|
+
Enabled: true
|
206
|
+
AllowForAlignment: true
|
207
|
+
|
208
|
+
# Supports --auto-correct
|
209
|
+
Layout/FirstArrayElementLineBreak:
|
210
|
+
Description: Checks for a line break before the first element in a multi-line array.
|
211
|
+
Enabled: true
|
212
|
+
|
213
|
+
# Supports --auto-correct
|
214
|
+
Layout/FirstHashElementLineBreak:
|
215
|
+
Description: Checks for a line break before the first element in a multi-line hash.
|
216
|
+
Enabled: true
|
217
|
+
|
218
|
+
# Supports --auto-correct
|
219
|
+
Layout/FirstMethodArgumentLineBreak:
|
220
|
+
Description: Checks for a line break before the first argument in a multi-line method
|
221
|
+
call.
|
222
|
+
Enabled: false
|
223
|
+
|
224
|
+
# Supports --auto-correct
|
225
|
+
Layout/FirstMethodParameterLineBreak:
|
226
|
+
Description: Checks for a line break before the first parameter in a multi-line method
|
227
|
+
parameter definition.
|
228
|
+
Enabled: false
|
229
|
+
|
230
|
+
# Supports --auto-correct
|
231
|
+
Layout/FirstArgumentIndentation:
|
232
|
+
Description: Checks the indentation of the first parameter in a method call.
|
233
|
+
Enabled: true
|
234
|
+
EnforcedStyle: consistent
|
235
|
+
SupportedStyles:
|
236
|
+
- consistent
|
237
|
+
- consistent_relative_to_receiver
|
238
|
+
- special_for_inner_method_call
|
239
|
+
- special_for_inner_method_call_in_parentheses
|
240
|
+
|
241
|
+
# Supports --auto-correct
|
242
|
+
Layout/FirstArrayElementIndentation:
|
243
|
+
Description: Checks the indentation of the first element in an array literal.
|
244
|
+
Enabled: true
|
245
|
+
EnforcedStyle: consistent
|
246
|
+
|
247
|
+
# Supports --auto-correct
|
248
|
+
Layout/AssignmentIndentation:
|
249
|
+
Description: Checks the indentation of the first line of the right-hand-side of a
|
250
|
+
multi-line assignment.
|
251
|
+
Enabled: true
|
252
|
+
|
253
|
+
# Supports --auto-correct
|
254
|
+
Layout/FirstHashElementIndentation:
|
255
|
+
Description: Checks the indentation of the first key in a hash literal.
|
256
|
+
Enabled: true
|
257
|
+
EnforcedStyle: consistent
|
258
|
+
SupportedStyles:
|
259
|
+
- special_inside_parentheses
|
260
|
+
- consistent
|
261
|
+
|
262
|
+
Layout/HeredocIndentation:
|
263
|
+
Enabled: false
|
264
|
+
|
265
|
+
# Supports --auto-correct
|
266
|
+
Layout/IndentationConsistency:
|
267
|
+
Description: Keep indentation straight.
|
268
|
+
Enabled: true
|
269
|
+
EnforcedStyle: normal
|
270
|
+
SupportedStyles:
|
271
|
+
- normal
|
272
|
+
- indented_internal_methods
|
273
|
+
|
274
|
+
# Supports --auto-correct
|
275
|
+
Layout/IndentationWidth:
|
276
|
+
Description: Use 2 spaces for indentation.
|
277
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#spaces-indentation
|
278
|
+
Enabled: true
|
279
|
+
Width: 2
|
280
|
+
|
281
|
+
# Supports --auto-correct
|
282
|
+
Layout/InitialIndentation:
|
283
|
+
Description: Checks the indentation of the first non-blank non-comment line in a file.
|
284
|
+
Enabled: true
|
285
|
+
|
286
|
+
Layout/LeadingEmptyLines:
|
287
|
+
Enabled: true
|
288
|
+
|
289
|
+
# Supports --auto-correct
|
290
|
+
Layout/LeadingCommentSpace:
|
291
|
+
Description: Comments should start with a space.
|
292
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#hash-space
|
293
|
+
Enabled: true
|
294
|
+
|
295
|
+
# Supports --auto-correct
|
296
|
+
Layout/MultilineArrayBraceLayout:
|
297
|
+
Description: Checks that the closing brace in an array literal is symmetrical with
|
298
|
+
respect to the opening brace and the array elements.
|
299
|
+
Enabled: true
|
300
|
+
|
301
|
+
# Supports --auto-correct
|
302
|
+
Layout/MultilineAssignmentLayout:
|
303
|
+
Description: Check for a newline after the assignment operator in multi-line assignments.
|
304
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#indent-conditional-assignment
|
305
|
+
Enabled: false
|
306
|
+
SupportedTypes:
|
307
|
+
- block
|
308
|
+
- case
|
309
|
+
- class
|
310
|
+
- if
|
311
|
+
- kwbegin
|
312
|
+
- module
|
313
|
+
EnforcedStyle: new_line
|
314
|
+
SupportedStyles:
|
315
|
+
- same_line
|
316
|
+
- new_line
|
317
|
+
|
318
|
+
# Supports --auto-correct
|
319
|
+
Layout/MultilineBlockLayout:
|
320
|
+
Description: Ensures newlines after multiline block do statements.
|
321
|
+
Enabled: true
|
322
|
+
|
323
|
+
Layout/MultilineHashBraceLayout:
|
324
|
+
Description: >-
|
325
|
+
Checks that the closing brace in a hash literal is
|
326
|
+
symmetrical with respect to the opening brace and the
|
327
|
+
hash elements.
|
328
|
+
Enabled: true
|
329
|
+
|
330
|
+
Layout/MultilineMethodCallBraceLayout:
|
331
|
+
Description: >-
|
332
|
+
Checks that the closing brace in a method call is
|
333
|
+
symmetrical with respect to the opening brace and the
|
334
|
+
method arguments.
|
335
|
+
Enabled: true
|
336
|
+
EnforcedStyle: symmetrical
|
337
|
+
|
338
|
+
# Supports --auto-correct
|
339
|
+
Layout/MultilineMethodCallIndentation:
|
340
|
+
Description: Checks indentation of method calls with the dot operator that span more
|
341
|
+
than one line.
|
342
|
+
Enabled: true
|
343
|
+
EnforcedStyle: indented
|
344
|
+
SupportedStyles:
|
345
|
+
- aligned
|
346
|
+
- indented
|
347
|
+
|
348
|
+
Layout/MultilineMethodDefinitionBraceLayout:
|
349
|
+
Description: >-
|
350
|
+
Checks that the closing brace in a method definition is
|
351
|
+
symmetrical with respect to the opening brace and the
|
352
|
+
method parametters.
|
353
|
+
Enabled: true
|
354
|
+
|
355
|
+
# The default (aligned) would force multi line operations to look like this
|
356
|
+
# balance = Balance.
|
357
|
+
# where(cond).
|
358
|
+
# where(cond).
|
359
|
+
# first
|
360
|
+
Layout/MultilineOperationIndentation:
|
361
|
+
Enabled: false
|
362
|
+
EnforcedStyle: indented
|
363
|
+
|
364
|
+
# Supports --auto-correct
|
365
|
+
Layout/RescueEnsureAlignment:
|
366
|
+
Description: Align rescues and ensures correctly.
|
367
|
+
Enabled: true
|
368
|
+
|
369
|
+
# Supports --auto-correct
|
370
|
+
Layout/SpaceAfterColon:
|
371
|
+
Description: Use spaces after colons.
|
372
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#spaces-operators
|
373
|
+
Enabled: true
|
374
|
+
|
375
|
+
# Supports --auto-correct
|
376
|
+
Layout/SpaceAfterComma:
|
377
|
+
Description: Use spaces after commas.
|
378
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#spaces-operators
|
379
|
+
Enabled: true
|
380
|
+
|
381
|
+
# Supports --auto-correct
|
382
|
+
Layout/SpaceAfterMethodName:
|
383
|
+
Description: Do not put a space between a method name and the opening parenthesis
|
384
|
+
in a method definition.
|
385
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#parens-no-spaces
|
386
|
+
Enabled: true
|
387
|
+
|
388
|
+
# Supports --auto-correct
|
389
|
+
Layout/SpaceAfterNot:
|
390
|
+
Description: Tracks redundant space after the ! operator.
|
391
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-space-bang
|
392
|
+
Enabled: true
|
393
|
+
|
394
|
+
# Supports --auto-correct
|
395
|
+
Layout/SpaceAfterSemicolon:
|
396
|
+
Description: Use spaces after semicolons.
|
397
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#spaces-operators
|
398
|
+
Enabled: true
|
399
|
+
|
400
|
+
# Supports --auto-correct
|
401
|
+
Layout/SpaceAroundBlockParameters:
|
402
|
+
Description: Checks the spacing inside and after block parameters pipes.
|
403
|
+
Enabled: true
|
404
|
+
EnforcedStyleInsidePipes: no_space
|
405
|
+
|
406
|
+
# Supports --auto-correct
|
407
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
408
|
+
Description: Checks that the equals signs in parameter default assignments have or
|
409
|
+
don't have surrounding space depending on configuration.
|
410
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#spaces-around-equals
|
411
|
+
Enabled: true
|
412
|
+
EnforcedStyle: space
|
413
|
+
SupportedStyles:
|
414
|
+
- space
|
415
|
+
- no_space
|
416
|
+
|
417
|
+
Layout/SpaceAroundKeyword:
|
418
|
+
Description: 'Use a space around keywords if appropriate.'
|
419
|
+
Enabled: true
|
420
|
+
|
421
|
+
# Supports --auto-correct
|
422
|
+
Layout/SpaceAroundOperators:
|
423
|
+
Description: Use a single space around operators.
|
424
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#spaces-operators
|
425
|
+
Enabled: true
|
426
|
+
AllowForAlignment: true
|
427
|
+
|
428
|
+
# Supports --auto-correct
|
429
|
+
Layout/SpaceBeforeBlockBraces:
|
430
|
+
Description: Checks that the left block brace has or doesn't have space before it.
|
431
|
+
Enabled: true
|
432
|
+
EnforcedStyle: space
|
433
|
+
SupportedStyles:
|
434
|
+
- space
|
435
|
+
- no_space
|
436
|
+
|
437
|
+
# Supports --auto-correct
|
438
|
+
Layout/SpaceBeforeComma:
|
439
|
+
Description: No spaces before commas.
|
440
|
+
Enabled: true
|
441
|
+
|
442
|
+
# Supports --auto-correct
|
443
|
+
Layout/SpaceBeforeComment:
|
444
|
+
Description: Checks for missing space between code and a comment on the same line.
|
445
|
+
Enabled: true
|
446
|
+
|
447
|
+
# Supports --auto-correct
|
448
|
+
Layout/SpaceBeforeFirstArg:
|
449
|
+
Description: Put a space between a method name and the first argument in a method
|
450
|
+
call without parentheses.
|
451
|
+
Enabled: true
|
452
|
+
|
453
|
+
# Supports --auto-correct
|
454
|
+
Layout/SpaceBeforeSemicolon:
|
455
|
+
Description: No spaces before semicolons.
|
456
|
+
Enabled: true
|
457
|
+
|
458
|
+
Layout/SpaceInLambdaLiteral:
|
459
|
+
Enabled: false
|
460
|
+
|
461
|
+
Layout/SpaceInsideArrayPercentLiteral:
|
462
|
+
Enabled: false
|
463
|
+
|
464
|
+
# Supports --auto-correct
|
465
|
+
Layout/SpaceInsideBlockBraces:
|
466
|
+
Description: Checks that block braces have or don't have surrounding space. For blocks
|
467
|
+
taking parameters, checks that the left brace has or doesn't have trailing space.
|
468
|
+
Enabled: true
|
469
|
+
EnforcedStyle: space
|
470
|
+
SupportedStyles:
|
471
|
+
- space
|
472
|
+
- no_space
|
473
|
+
EnforcedStyleForEmptyBraces: no_space
|
474
|
+
SpaceBeforeBlockParameters: true
|
475
|
+
|
476
|
+
Layout/SpaceInsideArrayLiteralBrackets:
|
477
|
+
EnforcedStyle: no_space
|
478
|
+
SupportedStyles:
|
479
|
+
- space
|
480
|
+
- no_space
|
481
|
+
# 'compact' normally requires a space inside the brackets, with the exception
|
482
|
+
# that successive left brackets or right brackets are collapsed together
|
483
|
+
- compact
|
484
|
+
EnforcedStyleForEmptyBrackets: no_space
|
485
|
+
SupportedStylesForEmptyBrackets:
|
486
|
+
- space
|
487
|
+
- no_space
|
488
|
+
Enabled: true
|
489
|
+
|
490
|
+
Layout/SpaceInsideReferenceBrackets:
|
491
|
+
EnforcedStyleForEmptyBrackets: no_space
|
492
|
+
SupportedStyles:
|
493
|
+
- space
|
494
|
+
- no_space
|
495
|
+
Enabled: true
|
496
|
+
|
497
|
+
# Supports --auto-correct
|
498
|
+
Layout/SpaceInsideHashLiteralBraces:
|
499
|
+
Description: Use spaces inside hash literal braces - or don't.
|
500
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#spaces-operators
|
501
|
+
Enabled: true
|
502
|
+
EnforcedStyle: space
|
503
|
+
EnforcedStyleForEmptyBraces: no_space
|
504
|
+
SupportedStyles:
|
505
|
+
- space
|
506
|
+
- no_space
|
507
|
+
|
508
|
+
# Supports --auto-correct
|
509
|
+
Layout/SpaceInsideParens:
|
510
|
+
Description: No spaces after ( or before ).
|
511
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-spaces-braces
|
512
|
+
Enabled: true
|
513
|
+
|
514
|
+
Layout/SpaceInsidePercentLiteralDelimiters:
|
515
|
+
Description: 'No unnecessary spaces inside delimiters of %i/%w/%x literals.'
|
516
|
+
Enabled: true
|
517
|
+
|
518
|
+
# Supports --auto-correct
|
519
|
+
Layout/SpaceInsideRangeLiteral:
|
520
|
+
Description: No spaces inside range literals.
|
521
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-space-inside-range-literals
|
522
|
+
Enabled: true
|
523
|
+
|
524
|
+
# Supports --auto-correct
|
525
|
+
Layout/SpaceInsideStringInterpolation:
|
526
|
+
Description: Checks for padding/surrounding spaces inside string interpolation.
|
527
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#string-interpolation
|
528
|
+
Enabled: true
|
529
|
+
EnforcedStyle: no_space
|
530
|
+
SupportedStyles:
|
531
|
+
- space
|
532
|
+
- no_space
|
533
|
+
|
534
|
+
# Supports --auto-correct
|
535
|
+
Layout/IndentationStyle:
|
536
|
+
Description: No hard tabs.
|
537
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#spaces-indentation
|
538
|
+
Enabled: true
|
539
|
+
|
540
|
+
# Supports --auto-correct
|
541
|
+
Layout/TrailingEmptyLines:
|
542
|
+
Description: Checks trailing blank lines and final newline.
|
543
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#newline-eof
|
544
|
+
Enabled: true
|
545
|
+
EnforcedStyle: final_newline
|
546
|
+
SupportedStyles:
|
547
|
+
- final_newline
|
548
|
+
- final_blank_line
|
549
|
+
|
550
|
+
# Supports --auto-correct
|
551
|
+
Layout/TrailingWhitespace:
|
552
|
+
Description: Avoid trailing whitespace.
|
553
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-trailing-whitespace
|
554
|
+
Enabled: true
|
555
|
+
|
556
|
+
Layout/FirstParameterIndentation:
|
557
|
+
Enabled: true
|
558
|
+
|
559
|
+
# Supports --auto-correct
|
560
|
+
Layout/LineLength:
|
561
|
+
Max: 100
|
562
|
+
AllowURI: true
|