the_bath_of_zahn 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/internal/overrides.yml +11 -0
- data/config/internal/rails_style_guide.yml +7 -0
- data/config/internal/style_guide.yml +154 -153
- data/the_bath_of_zahn.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d62013b8eef52cf51c616b4ef0b858030a26245c
|
4
|
+
data.tar.gz: deeab4756de61211ef227ac674b62fd512e32612
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3bdaefb2dd6566037b7cb421d68248cd26160d045da4d05a2ce86f4058366d22ae1efe973316e9e09411963a6c997c301fa663274e8d6c23732d1ead1e1a5b2
|
7
|
+
data.tar.gz: 443aeb98a39fe9bb884daa78d708bfcbb5849c2655663aaaaa2e127b3b139a5cc50de66811097f9cf0859ef4d2c127df754afd5a638eb71775787cc290e6092a
|
@@ -31,6 +31,11 @@ Metrics/BlockLength:
|
|
31
31
|
- config/initializers/**/*
|
32
32
|
- config/environments/**/*
|
33
33
|
- lib/tasks/**/*.rake
|
34
|
+
- "**/*.gemspec"
|
35
|
+
|
36
|
+
Metrics/ClassLength:
|
37
|
+
Exclude:
|
38
|
+
- test/**/*_test.rb
|
34
39
|
|
35
40
|
Metrics/MethodLength:
|
36
41
|
Exclude:
|
@@ -47,6 +52,9 @@ Style/ClassAndModuleChildren:
|
|
47
52
|
Style/Documentation:
|
48
53
|
Enabled: false
|
49
54
|
|
55
|
+
Style/DoubleNegation:
|
56
|
+
Enabled: false
|
57
|
+
|
50
58
|
Style/EmptyElse:
|
51
59
|
EnforcedStyle: empty
|
52
60
|
|
@@ -73,3 +81,6 @@ Style/StringLiteralsInInterpolation:
|
|
73
81
|
|
74
82
|
Style/TrailingCommaInLiteral:
|
75
83
|
EnforcedStyleForMultiline: comma
|
84
|
+
|
85
|
+
Style/WhileUntilModifier:
|
86
|
+
Enabled: false
|
@@ -29,6 +29,13 @@ Rails/HasManyOrHasOneDependent:
|
|
29
29
|
Enabled: true
|
30
30
|
Include:
|
31
31
|
- app/models/**/*.rb
|
32
|
+
Rails/LexicallyScopedActionFilter:
|
33
|
+
Description: Checks that methods specified in the filter's `only` or `except` options
|
34
|
+
are explicitly defined in the controller.
|
35
|
+
StyleGuide: https://github.com/bbatsov/rails-style-guide#lexically-scoped-action-filter
|
36
|
+
Enabled: true
|
37
|
+
Include:
|
38
|
+
- app/controllers/**/*.rb
|
32
39
|
Rails/ReadWriteAttribute:
|
33
40
|
Description: Checks for read_attribute(:attr) and write_attribute(:attr, val).
|
34
41
|
StyleGuide: https://github.com/bbatsov/rails-style-guide#read-attribute
|
@@ -39,6 +39,10 @@ Layout/DotPosition:
|
|
39
39
|
SupportedStyles:
|
40
40
|
- leading
|
41
41
|
- trailing
|
42
|
+
Layout/EmptyLineAfterMagicComment:
|
43
|
+
Description: Add an empty line after magic comments to separate them from code.
|
44
|
+
StyleGuide: "#separate-magic-comments-from-code"
|
45
|
+
Enabled: true
|
42
46
|
Layout/EmptyLineBetweenDefs:
|
43
47
|
Description: Use empty lines between defs.
|
44
48
|
StyleGuide: "#empty-lines-between-methods"
|
@@ -79,6 +83,10 @@ Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
|
79
83
|
Description: Keeps track of empty lines around exception handling keywords.
|
80
84
|
StyleGuide: "#empty-lines-around-bodies"
|
81
85
|
Enabled: true
|
86
|
+
Layout/EmptyLinesAroundMethodBody:
|
87
|
+
Description: Keeps track of empty lines around method bodies.
|
88
|
+
StyleGuide: "#empty-lines-around-bodies"
|
89
|
+
Enabled: true
|
82
90
|
Layout/EmptyLinesAroundModuleBody:
|
83
91
|
Description: Keeps track of empty lines around module bodies.
|
84
92
|
StyleGuide: "#empty-lines-around-bodies"
|
@@ -89,10 +97,6 @@ Layout/EmptyLinesAroundModuleBody:
|
|
89
97
|
- empty_lines_except_namespace
|
90
98
|
- empty_lines_special
|
91
99
|
- no_empty_lines
|
92
|
-
Layout/EmptyLinesAroundMethodBody:
|
93
|
-
Description: Keeps track of empty lines around method bodies.
|
94
|
-
StyleGuide: "#empty-lines-around-bodies"
|
95
|
-
Enabled: true
|
96
100
|
Layout/EndOfLine:
|
97
101
|
Description: Use Unix-style line endings.
|
98
102
|
StyleGuide: "#crlf"
|
@@ -102,6 +106,17 @@ Layout/EndOfLine:
|
|
102
106
|
- native
|
103
107
|
- lf
|
104
108
|
- crlf
|
109
|
+
Layout/IndentHeredoc:
|
110
|
+
Description: This cops checks the indentation of the here document bodies.
|
111
|
+
StyleGuide: "#squiggly-heredocs"
|
112
|
+
Enabled: true
|
113
|
+
EnforcedStyle: auto_detection
|
114
|
+
SupportedStyles:
|
115
|
+
- auto_detection
|
116
|
+
- squiggly
|
117
|
+
- active_support
|
118
|
+
- powerpack
|
119
|
+
- unindent
|
105
120
|
Layout/IndentationConsistency:
|
106
121
|
Description: Keep indentation straight.
|
107
122
|
StyleGuide: "#spaces-indentation"
|
@@ -116,25 +131,10 @@ Layout/IndentationWidth:
|
|
116
131
|
Enabled: true
|
117
132
|
Width: 2
|
118
133
|
IgnoredPatterns: []
|
119
|
-
Layout/IndentHeredoc:
|
120
|
-
Description: This cops checks the indentation of the here document bodies.
|
121
|
-
StyleGuide: "#squiggly-heredocs"
|
122
|
-
Enabled: true
|
123
|
-
EnforcedStyle: auto_detection
|
124
|
-
SupportedStyles:
|
125
|
-
- auto_detection
|
126
|
-
- squiggly
|
127
|
-
- active_support
|
128
|
-
- powerpack
|
129
|
-
- unindent
|
130
134
|
Layout/LeadingCommentSpace:
|
131
135
|
Description: Comments should start with a space.
|
132
136
|
StyleGuide: "#hash-space"
|
133
137
|
Enabled: true
|
134
|
-
Layout/EmptyLineAfterMagicComment:
|
135
|
-
Description: Add an empty line after magic comments to separate them from code.
|
136
|
-
StyleGuide: "#separate-magic-comments-from-code"
|
137
|
-
Enabled: true
|
138
138
|
Layout/SpaceAfterColon:
|
139
139
|
Description: Use spaces after colons.
|
140
140
|
StyleGuide: "#spaces-operators"
|
@@ -170,10 +170,6 @@ Layout/SpaceAroundOperators:
|
|
170
170
|
StyleGuide: "#spaces-operators"
|
171
171
|
Enabled: true
|
172
172
|
AllowForAlignment: true
|
173
|
-
Layout/SpaceInsideBrackets:
|
174
|
-
Description: No spaces after [ or before ].
|
175
|
-
StyleGuide: "#no-spaces-braces"
|
176
|
-
Enabled: true
|
177
173
|
Layout/SpaceInsideHashLiteralBraces:
|
178
174
|
Description: Use spaces inside hash literal braces - or don't.
|
179
175
|
StyleGuide: "#spaces-operators"
|
@@ -189,7 +185,7 @@ Layout/SpaceInsideHashLiteralBraces:
|
|
189
185
|
- no_space
|
190
186
|
Layout/SpaceInsideParens:
|
191
187
|
Description: No spaces after ( or before ).
|
192
|
-
StyleGuide: "#
|
188
|
+
StyleGuide: "#spaces-braces"
|
193
189
|
Enabled: true
|
194
190
|
Layout/SpaceInsideRangeLiteral:
|
195
191
|
Description: No spaces inside range literals.
|
@@ -220,6 +216,101 @@ Layout/TrailingWhitespace:
|
|
220
216
|
Description: Avoid trailing whitespace.
|
221
217
|
StyleGuide: "#no-trailing-whitespace"
|
222
218
|
Enabled: true
|
219
|
+
Lint/AmbiguousBlockAssociation:
|
220
|
+
Description: Checks for ambiguous block association with method when param passed
|
221
|
+
without parentheses.
|
222
|
+
StyleGuide: "#syntax"
|
223
|
+
Enabled: true
|
224
|
+
Lint/AmbiguousOperator:
|
225
|
+
Description: Checks for ambiguous operators in the first argument of a method invocation
|
226
|
+
without parentheses.
|
227
|
+
StyleGuide: "#method-invocation-parens"
|
228
|
+
Enabled: true
|
229
|
+
Lint/AssignmentInCondition:
|
230
|
+
Description: Don't use assignment in conditions.
|
231
|
+
StyleGuide: "#safe-assignment-in-condition"
|
232
|
+
Enabled: true
|
233
|
+
AllowSafeAssignment: true
|
234
|
+
Lint/ConditionPosition:
|
235
|
+
Description: Checks for condition placed in a confusing position relative to the
|
236
|
+
keyword.
|
237
|
+
StyleGuide: "#same-line-condition"
|
238
|
+
Enabled: true
|
239
|
+
Lint/EnsureReturn:
|
240
|
+
Description: Do not use return in an ensure block.
|
241
|
+
StyleGuide: "#no-return-ensure"
|
242
|
+
Enabled: true
|
243
|
+
Lint/HandleExceptions:
|
244
|
+
Description: Don't suppress exception.
|
245
|
+
StyleGuide: "#dont-hide-exceptions"
|
246
|
+
Enabled: true
|
247
|
+
Lint/Loop:
|
248
|
+
Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while
|
249
|
+
for post-loop tests.
|
250
|
+
StyleGuide: "#loop-with-break"
|
251
|
+
Enabled: true
|
252
|
+
Lint/NestedMethodDefinition:
|
253
|
+
Description: Do not use nested method definitions.
|
254
|
+
StyleGuide: "#no-nested-methods"
|
255
|
+
Enabled: true
|
256
|
+
Lint/ParenthesesAsGroupedExpression:
|
257
|
+
Description: Checks for method calls with a space before the opening parenthesis.
|
258
|
+
StyleGuide: "#parens-no-spaces"
|
259
|
+
Enabled: true
|
260
|
+
Lint/RescueException:
|
261
|
+
Description: Avoid rescuing the Exception class.
|
262
|
+
StyleGuide: "#no-blind-rescues"
|
263
|
+
Enabled: true
|
264
|
+
Lint/StringConversionInInterpolation:
|
265
|
+
Description: Checks for Object#to_s usage in string interpolation.
|
266
|
+
StyleGuide: "#no-to-s"
|
267
|
+
Enabled: true
|
268
|
+
Lint/UnusedBlockArgument:
|
269
|
+
Description: Checks for unused block arguments.
|
270
|
+
StyleGuide: "#underscore-unused-vars"
|
271
|
+
Enabled: true
|
272
|
+
IgnoreEmptyBlocks: true
|
273
|
+
AllowUnusedKeywordArguments: false
|
274
|
+
Lint/UnusedMethodArgument:
|
275
|
+
Description: Checks for unused method arguments.
|
276
|
+
StyleGuide: "#underscore-unused-vars"
|
277
|
+
Enabled: true
|
278
|
+
AllowUnusedKeywordArguments: false
|
279
|
+
IgnoreEmptyMethods: true
|
280
|
+
Lint/UselessAssignment:
|
281
|
+
Description: Checks for useless assignment to a local variable.
|
282
|
+
StyleGuide: "#underscore-unused-vars"
|
283
|
+
Enabled: true
|
284
|
+
Metrics/BlockNesting:
|
285
|
+
Description: Avoid excessive block nesting
|
286
|
+
StyleGuide: "#three-is-the-number-thou-shalt-count"
|
287
|
+
Enabled: true
|
288
|
+
CountBlocks: false
|
289
|
+
Max: 3
|
290
|
+
Metrics/LineLength:
|
291
|
+
Description: Limit lines to 80 characters.
|
292
|
+
StyleGuide: "#80-character-limits"
|
293
|
+
Enabled: true
|
294
|
+
Max: 80
|
295
|
+
AllowHeredoc: true
|
296
|
+
AllowURI: true
|
297
|
+
URISchemes:
|
298
|
+
- http
|
299
|
+
- https
|
300
|
+
IgnoreCopDirectives: false
|
301
|
+
IgnoredPatterns: []
|
302
|
+
Metrics/MethodLength:
|
303
|
+
Description: Avoid methods longer than 10 lines of code.
|
304
|
+
StyleGuide: "#short-methods"
|
305
|
+
Enabled: true
|
306
|
+
CountComments: false
|
307
|
+
Max: 10
|
308
|
+
Metrics/ParameterLists:
|
309
|
+
Description: Avoid parameter lists longer than three or four parameters.
|
310
|
+
StyleGuide: "#too-many-params"
|
311
|
+
Enabled: true
|
312
|
+
Max: 5
|
313
|
+
CountKeywordArgs: true
|
223
314
|
Naming/AccessorMethodName:
|
224
315
|
Description: Check the naming of accessor methods for get_/set_.
|
225
316
|
StyleGuide: "#accessor_mutator_method_names"
|
@@ -228,6 +319,10 @@ Naming/AsciiIdentifiers:
|
|
228
319
|
Description: Use only ascii symbols in identifiers.
|
229
320
|
StyleGuide: "#english-identifiers"
|
230
321
|
Enabled: true
|
322
|
+
Naming/BinaryOperatorParameterName:
|
323
|
+
Description: When defining binary operators, name the argument other.
|
324
|
+
StyleGuide: "#other-arg"
|
325
|
+
Enabled: true
|
231
326
|
Naming/ClassAndModuleCamelCase:
|
232
327
|
Description: Use CamelCase for classes and modules.
|
233
328
|
StyleGuide: "#camelcase-classes"
|
@@ -327,10 +422,6 @@ Naming/PredicateName:
|
|
327
422
|
- define_singleton_method
|
328
423
|
Exclude:
|
329
424
|
- spec/**/*
|
330
|
-
Naming/BinaryOperatorParameterName:
|
331
|
-
Description: When defining binary operators, name the argument other.
|
332
|
-
StyleGuide: "#other-arg"
|
333
|
-
Enabled: true
|
334
425
|
Naming/VariableName:
|
335
426
|
Description: Use the configured style when naming variables.
|
336
427
|
StyleGuide: "#snake-case-symbols-methods-vars"
|
@@ -339,6 +430,12 @@ Naming/VariableName:
|
|
339
430
|
SupportedStyles:
|
340
431
|
- snake_case
|
341
432
|
- camelCase
|
433
|
+
Performance/HashEachMethods:
|
434
|
+
Description: Use `Hash#each_key` and `Hash#each_value` instead of `Hash#keys.each`
|
435
|
+
and `Hash#values.each`.
|
436
|
+
StyleGuide: "#hash-each"
|
437
|
+
Enabled: true
|
438
|
+
AutoCorrect: false
|
342
439
|
Style/Alias:
|
343
440
|
Description: Use alias instead of alias_method.
|
344
441
|
StyleGuide: "#alias-method"
|
@@ -363,14 +460,11 @@ Style/AsciiComments:
|
|
363
460
|
Description: Use only ascii symbols in comments.
|
364
461
|
StyleGuide: "#english-comments"
|
365
462
|
Enabled: true
|
463
|
+
AllowedChars: []
|
366
464
|
Style/Attr:
|
367
465
|
Description: Checks for uses of Module#attr.
|
368
466
|
StyleGuide: "#attr"
|
369
467
|
Enabled: true
|
370
|
-
Style/BeginBlock:
|
371
|
-
Description: Avoid the use of BEGIN blocks.
|
372
|
-
StyleGuide: "#no-BEGIN-blocks"
|
373
|
-
Enabled: true
|
374
468
|
Style/BarePercentLiterals:
|
375
469
|
Description: Checks if usage of %() or %Q() matches configuration.
|
376
470
|
StyleGuide: "#percent-q-shorthand"
|
@@ -379,6 +473,10 @@ Style/BarePercentLiterals:
|
|
379
473
|
SupportedStyles:
|
380
474
|
- percent_q
|
381
475
|
- bare_percent
|
476
|
+
Style/BeginBlock:
|
477
|
+
Description: Avoid the use of BEGIN blocks.
|
478
|
+
StyleGuide: "#no-BEGIN-blocks"
|
479
|
+
Enabled: true
|
382
480
|
Style/BlockComments:
|
383
481
|
Description: Do not use block comments.
|
384
482
|
StyleGuide: "#no-block-comments"
|
@@ -424,6 +522,7 @@ Style/CharacterLiteral:
|
|
424
522
|
Style/ClassAndModuleChildren:
|
425
523
|
Description: Checks style of children classes and modules.
|
426
524
|
StyleGuide: "#namespace-definition"
|
525
|
+
AutoCorrect: false
|
427
526
|
Enabled: true
|
428
527
|
EnforcedStyle: nested
|
429
528
|
SupportedStyles:
|
@@ -441,6 +540,10 @@ Style/ColonMethodCall:
|
|
441
540
|
Description: 'Do not use :: for method call.'
|
442
541
|
StyleGuide: "#double-colons"
|
443
542
|
Enabled: true
|
543
|
+
Style/ColonMethodDefinition:
|
544
|
+
Description: 'Do not use :: for defining class methods.'
|
545
|
+
StyleGuide: "#colon-method-definition"
|
546
|
+
Enabled: true
|
444
547
|
Style/CommandLiteral:
|
445
548
|
Description: Use `` or %x around command literals.
|
446
549
|
StyleGuide: "#percent-x"
|
@@ -486,14 +589,14 @@ Style/EmptyMethod:
|
|
486
589
|
SupportedStyles:
|
487
590
|
- compact
|
488
591
|
- expanded
|
489
|
-
Style/EndBlock:
|
490
|
-
Description: Avoid the use of END blocks.
|
491
|
-
StyleGuide: "#no-END-blocks"
|
492
|
-
Enabled: true
|
493
592
|
Style/Encoding:
|
494
593
|
Description: Use UTF-8 as the source file encoding.
|
495
594
|
StyleGuide: "#utf-8"
|
496
595
|
Enabled: true
|
596
|
+
Style/EndBlock:
|
597
|
+
Description: Avoid the use of END blocks.
|
598
|
+
StyleGuide: "#no-END-blocks"
|
599
|
+
Enabled: true
|
497
600
|
Style/EvenOdd:
|
498
601
|
Description: Favor the use of Integer#even? && Integer#odd?
|
499
602
|
StyleGuide: "#predicate-methods"
|
@@ -547,7 +650,6 @@ Style/IfUnlessModifier:
|
|
547
650
|
Description: Favor modifier if/unless usage when you have a single-line body.
|
548
651
|
StyleGuide: "#if-as-a-modifier"
|
549
652
|
Enabled: true
|
550
|
-
MaxLineLength: 80
|
551
653
|
Style/IfWithSemicolon:
|
552
654
|
Description: Do not use if x; .... Use the ternary operator instead.
|
553
655
|
StyleGuide: "#no-semicolon-ifs"
|
@@ -610,14 +712,14 @@ Style/MultilineBlockChain:
|
|
610
712
|
Description: Avoid multi-line chains of blocks.
|
611
713
|
StyleGuide: "#single-line-blocks"
|
612
714
|
Enabled: true
|
613
|
-
Style/MultilineIfThen:
|
614
|
-
Description: Do not use then for multi-line if/unless.
|
615
|
-
StyleGuide: "#no-then"
|
616
|
-
Enabled: true
|
617
715
|
Style/MultilineIfModifier:
|
618
716
|
Description: Only use if/unless modifiers on single line statements.
|
619
717
|
StyleGuide: "#no-multiline-if-modifiers"
|
620
718
|
Enabled: true
|
719
|
+
Style/MultilineIfThen:
|
720
|
+
Description: Do not use then for multi-line if/unless.
|
721
|
+
StyleGuide: "#no-then"
|
722
|
+
Enabled: true
|
621
723
|
Style/MultilineTernaryOperator:
|
622
724
|
Description: 'Avoid multi-line ?: (the ternary operator); use if/unless instead.'
|
623
725
|
StyleGuide: "#no-multiline-ternary"
|
@@ -665,12 +767,6 @@ Style/Not:
|
|
665
767
|
Description: Use ! instead of not.
|
666
768
|
StyleGuide: "#bang-not-not"
|
667
769
|
Enabled: true
|
668
|
-
Style/NumericLiterals:
|
669
|
-
Description: Add underscores to large numeric literals to improve their readability.
|
670
|
-
StyleGuide: "#underscores-in-numerics"
|
671
|
-
Enabled: true
|
672
|
-
MinDigits: 5
|
673
|
-
Strict: false
|
674
770
|
Style/NumericLiteralPrefix:
|
675
771
|
Description: Use smallcase prefixes for numeric literals.
|
676
772
|
StyleGuide: "#numeric-literal-prefixes"
|
@@ -679,6 +775,12 @@ Style/NumericLiteralPrefix:
|
|
679
775
|
SupportedOctalStyles:
|
680
776
|
- zero_with_o
|
681
777
|
- zero_only
|
778
|
+
Style/NumericLiterals:
|
779
|
+
Description: Add underscores to large numeric literals to improve their readability.
|
780
|
+
StyleGuide: "#underscores-in-numerics"
|
781
|
+
Enabled: true
|
782
|
+
MinDigits: 5
|
783
|
+
Strict: false
|
682
784
|
Style/NumericPredicate:
|
683
785
|
Description: Checks for the use of predicate- or comparison methods for numeric
|
684
786
|
comparisons.
|
@@ -749,6 +851,11 @@ Style/RaiseArgs:
|
|
749
851
|
SupportedStyles:
|
750
852
|
- compact
|
751
853
|
- exploded
|
854
|
+
Style/RandomWithOffset:
|
855
|
+
Description: Prefer to use ranges when generating random numbers instead of integers
|
856
|
+
with offsets.
|
857
|
+
StyleGuide: "#random-numbers"
|
858
|
+
Enabled: true
|
752
859
|
Style/RedundantBegin:
|
753
860
|
Description: Don't use begin blocks when they are not needed.
|
754
861
|
StyleGuide: "#begin-implicit"
|
@@ -915,7 +1022,6 @@ Style/WhileUntilModifier:
|
|
915
1022
|
Description: Favor modifier while/until usage when you have a single-line body.
|
916
1023
|
StyleGuide: "#while-as-a-modifier"
|
917
1024
|
Enabled: true
|
918
|
-
MaxLineLength: 80
|
919
1025
|
Style/WordArray:
|
920
1026
|
Description: Use %w or %W for arrays of words.
|
921
1027
|
StyleGuide: "#percent-w"
|
@@ -926,108 +1032,3 @@ Style/WordArray:
|
|
926
1032
|
- brackets
|
927
1033
|
MinSize: 0
|
928
1034
|
WordRegex: !ruby/regexp /\A[\p{Word}\n\t]+\z/
|
929
|
-
Metrics/BlockNesting:
|
930
|
-
Description: Avoid excessive block nesting
|
931
|
-
StyleGuide: "#three-is-the-number-thou-shalt-count"
|
932
|
-
Enabled: true
|
933
|
-
CountBlocks: false
|
934
|
-
Max: 3
|
935
|
-
Metrics/LineLength:
|
936
|
-
Description: Limit lines to 80 characters.
|
937
|
-
StyleGuide: "#80-character-limits"
|
938
|
-
Enabled: true
|
939
|
-
Max: 80
|
940
|
-
AllowHeredoc: true
|
941
|
-
AllowURI: true
|
942
|
-
URISchemes:
|
943
|
-
- http
|
944
|
-
- https
|
945
|
-
IgnoreCopDirectives: false
|
946
|
-
IgnoredPatterns: []
|
947
|
-
Metrics/MethodLength:
|
948
|
-
Description: Avoid methods longer than 10 lines of code.
|
949
|
-
StyleGuide: "#short-methods"
|
950
|
-
Enabled: true
|
951
|
-
CountComments: false
|
952
|
-
Max: 10
|
953
|
-
Metrics/ParameterLists:
|
954
|
-
Description: Avoid parameter lists longer than three or four parameters.
|
955
|
-
StyleGuide: "#too-many-params"
|
956
|
-
Enabled: true
|
957
|
-
Max: 5
|
958
|
-
CountKeywordArgs: true
|
959
|
-
Lint/AmbiguousBlockAssociation:
|
960
|
-
Description: Checks for ambiguous block association with method when param passed
|
961
|
-
without parentheses.
|
962
|
-
StyleGuide: "#syntax"
|
963
|
-
Enabled: true
|
964
|
-
Lint/AmbiguousOperator:
|
965
|
-
Description: Checks for ambiguous operators in the first argument of a method invocation
|
966
|
-
without parentheses.
|
967
|
-
StyleGuide: "#method-invocation-parens"
|
968
|
-
Enabled: true
|
969
|
-
Lint/AssignmentInCondition:
|
970
|
-
Description: Don't use assignment in conditions.
|
971
|
-
StyleGuide: "#safe-assignment-in-condition"
|
972
|
-
Enabled: true
|
973
|
-
AllowSafeAssignment: true
|
974
|
-
Lint/ConditionPosition:
|
975
|
-
Description: Checks for condition placed in a confusing position relative to the
|
976
|
-
keyword.
|
977
|
-
StyleGuide: "#same-line-condition"
|
978
|
-
Enabled: true
|
979
|
-
Lint/EnsureReturn:
|
980
|
-
Description: Do not use return in an ensure block.
|
981
|
-
StyleGuide: "#no-return-ensure"
|
982
|
-
Enabled: true
|
983
|
-
Lint/HandleExceptions:
|
984
|
-
Description: Don't suppress exception.
|
985
|
-
StyleGuide: "#dont-hide-exceptions"
|
986
|
-
Enabled: true
|
987
|
-
Lint/Loop:
|
988
|
-
Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while
|
989
|
-
for post-loop tests.
|
990
|
-
StyleGuide: "#loop-with-break"
|
991
|
-
Enabled: true
|
992
|
-
Lint/NestedMethodDefinition:
|
993
|
-
Description: Do not use nested method definitions.
|
994
|
-
StyleGuide: "#no-nested-methods"
|
995
|
-
Enabled: true
|
996
|
-
Lint/ParenthesesAsGroupedExpression:
|
997
|
-
Description: Checks for method calls with a space before the opening parenthesis.
|
998
|
-
StyleGuide: "#parens-no-spaces"
|
999
|
-
Enabled: true
|
1000
|
-
Lint/RescueException:
|
1001
|
-
Description: Avoid rescuing the Exception class.
|
1002
|
-
StyleGuide: "#no-blind-rescues"
|
1003
|
-
Enabled: true
|
1004
|
-
Lint/RescueWithoutErrorClass:
|
1005
|
-
Description: Avoid rescuing without specifying an error class.
|
1006
|
-
StyleGuide: "#no-blind-rescues"
|
1007
|
-
Enabled: true
|
1008
|
-
Lint/StringConversionInInterpolation:
|
1009
|
-
Description: Checks for Object#to_s usage in string interpolation.
|
1010
|
-
StyleGuide: "#no-to-s"
|
1011
|
-
Enabled: true
|
1012
|
-
Lint/UnusedBlockArgument:
|
1013
|
-
Description: Checks for unused block arguments.
|
1014
|
-
StyleGuide: "#underscore-unused-vars"
|
1015
|
-
Enabled: true
|
1016
|
-
IgnoreEmptyBlocks: true
|
1017
|
-
AllowUnusedKeywordArguments: false
|
1018
|
-
Lint/UnusedMethodArgument:
|
1019
|
-
Description: Checks for unused method arguments.
|
1020
|
-
StyleGuide: "#underscore-unused-vars"
|
1021
|
-
Enabled: true
|
1022
|
-
AllowUnusedKeywordArguments: false
|
1023
|
-
IgnoreEmptyMethods: true
|
1024
|
-
Lint/UselessAssignment:
|
1025
|
-
Description: Checks for useless assignment to a local variable.
|
1026
|
-
StyleGuide: "#underscore-unused-vars"
|
1027
|
-
Enabled: true
|
1028
|
-
Performance/HashEachMethods:
|
1029
|
-
Description: Use `Hash#each_key` and `Hash#each_value` instead of `Hash#keys.each`
|
1030
|
-
and `Hash#values.each`.
|
1031
|
-
StyleGuide: "#hash-each"
|
1032
|
-
Enabled: true
|
1033
|
-
AutoCorrect: false
|
data/the_bath_of_zahn.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "the_bath_of_zahn"
|
3
|
-
spec.version = "0.0.
|
3
|
+
spec.version = "0.0.5"
|
4
4
|
spec.authors = ["Zach Ahn"]
|
5
5
|
spec.email = ["engineering@zachahn.com"]
|
6
6
|
|
@@ -19,5 +19,5 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.add_development_dependency "bundler", "~> 1.15"
|
20
20
|
spec.add_development_dependency "rake", "~> 10.0"
|
21
21
|
spec.add_development_dependency "minitest", "~> 5.0"
|
22
|
-
spec.add_development_dependency "rubocop", "~> 0.
|
22
|
+
spec.add_development_dependency "rubocop", "~> 0.52.0"
|
23
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: the_bath_of_zahn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zach Ahn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.52.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.52.0
|
69
69
|
description: These are some Rubocop configs that I use in my new personal projects
|
70
70
|
email:
|
71
71
|
- engineering@zachahn.com
|