fintoc 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9ca33789fab6412d340066281c2c2d80f1f64bb4e7f8648b3fb9328e054b2dcf
4
+ data.tar.gz: ed649e528e5476d9e98064ddffd18962c54b2ba1640b0a24bd811fc23952f84b
5
+ SHA512:
6
+ metadata.gz: 4209e5b24ee42a6329c2be4dd523a600cac46a1bacc1c4e20711ecaa6cbe3f5c5fdaf78772768404d43469cd3b58e114ac9fc05a8298c086a54832e5c83a6712
7
+ data.tar.gz: f88ebb122809d04175dbf43149c2bf093dbf2760e6f255efe60c8cad2d767f3b544f902204b1e5117356c71c3fa62e70ce8f8bfa8703e842d40a1ec9f4b114a2
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,513 @@
1
+ require:
2
+ - rubocop-rspec
3
+ - rubocop-performance
4
+ AllCops:
5
+ Exclude:
6
+ - "vendor/**/*"
7
+ - "db/**/*"
8
+ - "bin/**/*"
9
+ TargetRubyVersion: 2.6
10
+ Rails:
11
+ Enabled: false
12
+ Performance:
13
+ Enabled: true
14
+ Layout/ParameterAlignment:
15
+ Description: Align the parameters of a method call if they span more than one line.
16
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-double-indent
17
+ Enabled: true
18
+ EnforcedStyle: with_fixed_indentation
19
+ SupportedStyles:
20
+ - with_first_parameter
21
+ - with_fixed_indentation
22
+ Metrics/BlockLength:
23
+ Enabled: false
24
+ Style/ClassAndModuleChildren:
25
+ Description: Checks style of children classes and modules.
26
+ Enabled: false
27
+ EnforcedStyle: nested
28
+ SupportedStyles:
29
+ - nested
30
+ - compact
31
+ Style/CommentAnnotation:
32
+ Description: Checks formatting of special comments (TODO, FIXME, OPTIMIZE, HACK,
33
+ REVIEW).
34
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#annotate-keywords
35
+ Enabled: false
36
+ Keywords:
37
+ - TODO
38
+ - FIXME
39
+ - OPTIMIZE
40
+ - HACK
41
+ - REVIEW
42
+ Naming/FileName:
43
+ Description: Use snake_case for source file names.
44
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
45
+ Enabled: false
46
+ Exclude: []
47
+ Style/FormatString:
48
+ Description: Enforce the use of Kernel#sprintf, Kernel#format or String#%.
49
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#sprintf
50
+ Enabled: false
51
+ EnforcedStyle: format
52
+ SupportedStyles:
53
+ - format
54
+ - sprintf
55
+ - percent
56
+ Style/FrozenStringLiteralComment:
57
+ Enabled: false
58
+ Style/GlobalVars:
59
+ Description: Do not introduce global variables.
60
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#instance-vars
61
+ Enabled: false
62
+ AllowedVariables: []
63
+ Style/GuardClause:
64
+ Description: Check for conditionals that can be replaced with guard clauses
65
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
66
+ Enabled: false
67
+ MinBodyLength: 1
68
+ Style/IfUnlessModifier:
69
+ Description: Favor modifier if/unless usage when you have a single-line body.
70
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
71
+ Enabled: false
72
+ Style/LambdaCall:
73
+ Description: Use lambda.call(...) instead of lambda.(...).
74
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc-call
75
+ Enabled: false
76
+ EnforcedStyle: call
77
+ SupportedStyles:
78
+ - call
79
+ - braces
80
+ Style/Next:
81
+ Description: Use `next` to skip iteration instead of a condition at the end.
82
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
83
+ Enabled: false
84
+ EnforcedStyle: skip_modifier_ifs
85
+ MinBodyLength: 3
86
+ SupportedStyles:
87
+ - skip_modifier_ifs
88
+ - always
89
+ Layout/MultilineOperationIndentation:
90
+ Description: Checks indentation of binary operations that span more than one line.
91
+ Enabled: true
92
+ EnforcedStyle: indented
93
+ SupportedStyles:
94
+ - aligned
95
+ - indented
96
+ Style/MutableConstant:
97
+ Description: Do not assign mutable objects to constants.
98
+ Enabled: false
99
+ Style/NumericLiterals:
100
+ Description: Add underscores to large numeric literals to improve their readability.
101
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
102
+ Enabled: false
103
+ MinDigits: 5
104
+ Style/PercentLiteralDelimiters:
105
+ Description: Use `%`-literal delimiters consistently
106
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-literal-braces
107
+ Enabled: false
108
+ PreferredDelimiters:
109
+ "%": "()"
110
+ "%i": "()"
111
+ "%q": "()"
112
+ "%Q": "()"
113
+ "%r": "{}"
114
+ "%s": "()"
115
+ "%w": "()"
116
+ "%W": "()"
117
+ "%x": "()"
118
+ Naming/PredicateName:
119
+ Description: Check the names of predicate methods.
120
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
121
+ Enabled: true
122
+ NamePrefix:
123
+ - is_
124
+ - has_
125
+ - have_
126
+ ForbiddenPrefixes:
127
+ - is_
128
+ Style/RaiseArgs:
129
+ Description: Checks the arguments passed to raise/fail.
130
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
131
+ Enabled: false
132
+ EnforcedStyle: exploded
133
+ SupportedStyles:
134
+ - compact
135
+ - exploded
136
+ Style/SignalException:
137
+ Description: Checks for proper usage of fail and raise.
138
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#fail-method
139
+ Enabled: false
140
+ EnforcedStyle: semantic
141
+ SupportedStyles:
142
+ - only_raise
143
+ - only_fail
144
+ - semantic
145
+ Style/SingleLineMethods:
146
+ Description: Avoid single-line methods.
147
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
148
+ Enabled: false
149
+ AllowIfMethodIsEmpty: true
150
+ Style/StringLiterals:
151
+ Description: Checks if uses of quotes match the configured preference.
152
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
153
+ Enabled: true
154
+ EnforcedStyle: single_quotes
155
+ SupportedStyles:
156
+ - single_quotes
157
+ - double_quotes
158
+ Style/TrailingCommaInArguments:
159
+ Description: Checks for trailing comma in argument lists.
160
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
161
+ Enabled: true
162
+ Style/TrailingCommaInArrayLiteral:
163
+ Description: Checks for trailing comma in array and hash literals.
164
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-trailing-array-commas
165
+ Enabled: true
166
+ Style/TrailingCommaInHashLiteral:
167
+ Description: Checks for trailing comma in array and hash literals.
168
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-trailing-array-commas
169
+ Enabled: true
170
+ Style/TrivialAccessors:
171
+ Description: Prefer attr_* methods to trivial readers/writers.
172
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr_family
173
+ Enabled: false
174
+ ExactNameMatch: false
175
+ AllowPredicates: false
176
+ AllowDSLWriters: false
177
+ AllowedMethods:
178
+ - to_ary
179
+ - to_a
180
+ - to_c
181
+ - to_enum
182
+ - to_h
183
+ - to_hash
184
+ - to_i
185
+ - to_int
186
+ - to_io
187
+ - to_open
188
+ - to_path
189
+ - to_proc
190
+ - to_r
191
+ - to_regexp
192
+ - to_str
193
+ - to_s
194
+ - to_sym
195
+ Style/WhileUntilModifier:
196
+ Description: Favor modifier while/until usage when you have a single-line body.
197
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier
198
+ Enabled: false
199
+ Style/WordArray:
200
+ Description: Use %w or %W for arrays of words.
201
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-w
202
+ Enabled: false
203
+ MinSize: 0
204
+ WordRegex: !ruby/regexp /\A[\p{Word}]+\z/
205
+ Metrics/AbcSize:
206
+ Description: A calculated magnitude based on number of assignments, branches, and
207
+ conditions.
208
+ Enabled: true
209
+ Max: 25
210
+ Metrics/BlockNesting:
211
+ Description: Avoid excessive block nesting
212
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count
213
+ Enabled: true
214
+ Max: 3
215
+ Metrics/ClassLength:
216
+ Description: Avoid classes longer than 100 lines of code.
217
+ Enabled: false
218
+ CountComments: false
219
+ Max: 100
220
+ Metrics/MethodLength:
221
+ Description: Avoid methods longer than 15 lines of code.
222
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
223
+ Enabled: true
224
+ CountComments: true
225
+ Max: 15
226
+ Exclude:
227
+ - "spec/**/*"
228
+ Metrics/ParameterLists:
229
+ Description: Avoid long parameter lists.
230
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
231
+ Enabled: false
232
+ Max: 5
233
+ CountKeywordArgs: true
234
+ Lint/AssignmentInCondition:
235
+ Description: Don't use assignment in conditions.
236
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
237
+ Enabled: false
238
+ AllowSafeAssignment: true
239
+ Lint/StructNewOverride:
240
+ Description: Disallow overriding the Struct built-in methods via Struct.new.
241
+ Enabled: false
242
+ Lint/RaiseException:
243
+ Description: Checks for raise or fail statements which are raising Exception class.
244
+ Enabled: true
245
+ Layout/LineLength:
246
+ Description: Limit lines to 100 characters.
247
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#100-character-limits
248
+ Enabled: true
249
+ Max: 100
250
+ AllowURI: true
251
+ URISchemes:
252
+ - http
253
+ - https
254
+ Layout/EndAlignment:
255
+ Description: Align ends correctly.
256
+ Enabled: true
257
+ EnforcedStyleAlignWith: keyword
258
+ SupportedStylesAlignWith:
259
+ - keyword
260
+ - variable
261
+ Layout/DefEndAlignment:
262
+ Description: Align ends corresponding to defs correctly.
263
+ Enabled: true
264
+ EnforcedStyleAlignWith: start_of_line
265
+ SupportedStylesAlignWith:
266
+ - start_of_line
267
+ - def
268
+ Style/SymbolArray:
269
+ Description: Use %i or %I for arrays of symbols.
270
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-i
271
+ Enabled: false
272
+ Layout/ExtraSpacing:
273
+ Description: Do not use unnecessary spacing.
274
+ Enabled: false
275
+ Naming/AccessorMethodName:
276
+ Description: Check the naming of accessor methods for get_/set_.
277
+ Enabled: false
278
+ Style/Alias:
279
+ Description: Use alias_method instead of alias.
280
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
281
+ Enabled: false
282
+ Style/ArrayJoin:
283
+ Description: Use Array#join instead of Array#*.
284
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#array-join
285
+ Enabled: false
286
+ Style/AsciiComments:
287
+ Description: Use only ascii symbols in comments.
288
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-comments
289
+ Enabled: false
290
+ Naming/AsciiIdentifiers:
291
+ Description: Use only ascii symbols in identifiers.
292
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-identifiers
293
+ Enabled: false
294
+ Style/Attr:
295
+ Description: Checks for uses of Module#attr.
296
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr
297
+ Enabled: false
298
+ Style/BlockComments:
299
+ Description: Do not use block comments.
300
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-block-comments
301
+ Enabled: false
302
+ Style/CaseEquality:
303
+ Description: Avoid explicit use of the case equality operator(===).
304
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-case-equality
305
+ Enabled: false
306
+ Style/CharacterLiteral:
307
+ Description: Checks for uses of character literals.
308
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-character-literals
309
+ Enabled: false
310
+ Style/ClassVars:
311
+ Description: Avoid the use of class variables.
312
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-class-vars
313
+ Enabled: false
314
+ Style/ColonMethodCall:
315
+ Description: 'Do not use :: for method call.'
316
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#double-colons
317
+ Enabled: false
318
+ Style/PreferredHashMethods:
319
+ Description: Checks for use of deprecated Hash methods.
320
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-key
321
+ Enabled: false
322
+ Style/Documentation:
323
+ Description: Document classes and non-namespace modules.
324
+ Enabled: false
325
+ Style/DoubleNegation:
326
+ Description: Checks for uses of double negation (!!).
327
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang
328
+ Enabled: false
329
+ Style/EachWithObject:
330
+ Description: Prefer `each_with_object` over `inject` or `reduce`.
331
+ Enabled: false
332
+ Style/EmptyElse:
333
+ Description: Avoid empty else-clauses.
334
+ Enabled: true
335
+ Style/EmptyLiteral:
336
+ Description: Prefer literals to Array.new/Hash.new/String.new.
337
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
338
+ Enabled: false
339
+ Layout/EndOfLine:
340
+ Description: Use Unix-style line endings.
341
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#crlf
342
+ Enabled: true
343
+ Style/EvenOdd:
344
+ Description: Favor the use of Fixnum#even? && Fixnum#odd?
345
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
346
+ Enabled: false
347
+ Lint/FlipFlop:
348
+ Description: Checks for flip flops
349
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-flip-flops
350
+ Enabled: false
351
+ Style/IfWithSemicolon:
352
+ Description: Do not use if x; .... Use the ternary operator instead.
353
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs
354
+ Enabled: false
355
+ Style/Lambda:
356
+ Description: Use the new lambda literal syntax for single-line blocks.
357
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#lambda-multi-line
358
+ Enabled: false
359
+ Style/LineEndConcatenation:
360
+ Description: Use \ instead of + or << to concatenate two string literals at line
361
+ end.
362
+ Enabled: false
363
+ Style/ModuleFunction:
364
+ Description: Checks for usage of `extend self` in modules.
365
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
366
+ Enabled: false
367
+ Style/MultilineBlockChain:
368
+ Description: Avoid multi-line chains of blocks.
369
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
370
+ Enabled: false
371
+ Layout/MultilineBlockLayout:
372
+ Description: Ensures newlines after multiline block do statements.
373
+ Enabled: false
374
+ Style/NegatedIf:
375
+ Description: Favor unless over if for negative conditions (or control flow or).
376
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#unless-for-negatives
377
+ Enabled: false
378
+ Style/NegatedWhile:
379
+ Description: Favor until over while for negative conditions.
380
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#until-for-negatives
381
+ Enabled: false
382
+ Style/NilComparison:
383
+ Description: Prefer x.nil? to x == nil.
384
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
385
+ Enabled: false
386
+ Style/OneLineConditional:
387
+ Description: Favor the ternary operator(?:) over if/then/else/end constructs.
388
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
389
+ Enabled: false
390
+ Naming/BinaryOperatorParameterName:
391
+ Description: When defining binary operators, name the argument other.
392
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#other-arg
393
+ Enabled: false
394
+ Style/PerlBackrefs:
395
+ Description: Avoid Perl-style regex back references.
396
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
397
+ Enabled: false
398
+ Style/Proc:
399
+ Description: Use proc instead of Proc.new.
400
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc
401
+ Enabled: false
402
+ Style/SelfAssignment:
403
+ Description: Checks for places where self-assignment shorthand should have been
404
+ used.
405
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#self-assignment
406
+ Enabled: false
407
+ Layout/SpaceBeforeFirstArg:
408
+ Description: Put a space between a method name and the first argument in a method
409
+ call without parentheses.
410
+ Enabled: true
411
+ Layout/SpaceAroundOperators:
412
+ Description: Use spaces around operators.
413
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
414
+ Enabled: true
415
+ Layout/SpaceInsideParens:
416
+ Description: No spaces after ( or before ).
417
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
418
+ Enabled: true
419
+ Style/SpecialGlobalVars:
420
+ Description: Avoid Perl-style global variables.
421
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
422
+ Enabled: false
423
+ Style/VariableInterpolation:
424
+ Description: Don't interpolate global, instance and class variables directly in
425
+ strings.
426
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
427
+ Enabled: false
428
+ Style/WhenThen:
429
+ Description: Use when x then ... for one-line cases.
430
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
431
+ Enabled: false
432
+ Style/HashTransformKeys:
433
+ Description: Prefer transform_keys over each_with_object and map.
434
+ Enabled: true
435
+ Safe: false
436
+ Style/HashTransformValues:
437
+ Description: Prefer transform_values over each_with_object and map.
438
+ Enabled: true
439
+ Safe: false
440
+ Style/HashEachMethods:
441
+ Description: Use Hash#each_key and Hash#each_value.
442
+ Enabled: true
443
+ Safe: false
444
+ Lint/AmbiguousOperator:
445
+ Description: Checks for ambiguous operators in the first argument of a method invocation
446
+ without parentheses.
447
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-as-args
448
+ Enabled: false
449
+ Lint/AmbiguousRegexpLiteral:
450
+ Description: Checks for ambiguous regexp literals in the first argument of a method
451
+ invocation without parenthesis.
452
+ Enabled: false
453
+ Layout/BlockAlignment:
454
+ Description: Align block ends correctly.
455
+ Enabled: true
456
+ Layout/ConditionPosition:
457
+ Description: Checks for condition placed in a confusing position relative to the
458
+ keyword.
459
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#same-line-condition
460
+ Enabled: false
461
+ Lint/DeprecatedClassMethods:
462
+ Description: Check for deprecated class method calls.
463
+ Enabled: false
464
+ Lint/ElseLayout:
465
+ Description: Check for odd code arrangement in an else block.
466
+ Enabled: false
467
+ Lint/SuppressedException:
468
+ Description: Don't suppress exception.
469
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
470
+ Enabled: false
471
+ Lint/LiteralAsCondition:
472
+ Description: Checks of literals used in conditions.
473
+ Enabled: false
474
+ Lint/LiteralInInterpolation:
475
+ Description: Checks for literals used in interpolation.
476
+ Enabled: false
477
+ Lint/Loop:
478
+ Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while
479
+ for post-loop tests.
480
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#loop-with-break
481
+ Enabled: false
482
+ Lint/ParenthesesAsGroupedExpression:
483
+ Description: Checks for method calls with a space before the opening parenthesis.
484
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
485
+ Enabled: false
486
+ Lint/RequireParentheses:
487
+ Description: Use parentheses in the method call to avoid confusion about precedence.
488
+ Enabled: false
489
+ Lint/UnderscorePrefixedVariableName:
490
+ Description: Do not use prefix `_` for a variable that is used.
491
+ Enabled: false
492
+ Lint/Void:
493
+ Description: Possible use of operator/literal/variable in void context.
494
+ Enabled: false
495
+ Performance/RedundantBlockCall:
496
+ Description: Use `yield` instead of `block.call`.
497
+ Reference: https://github.com/JuanitoFatas/fast-ruby#proccall-vs-yield-code
498
+ Enabled: false
499
+ RSpec/MultipleExpectations:
500
+ Max: 5
501
+ RSpec/NestedGroups:
502
+ Max: 5
503
+ RSpec/ExampleLength:
504
+ Max: 10
505
+ RSpec/LetSetup:
506
+ Enabled: false
507
+ RSpec/ExpectChange:
508
+ Enabled: true
509
+ EnforcedStyle: block
510
+ RSpec/EmptyExampleGroup:
511
+ Enabled: true
512
+ CustomIncludeMethods:
513
+ - run_test!