ffprober 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0f39ab8330d7d9b69833af671fe9c2c6d5584821
4
- data.tar.gz: 7425cb1dd0befdc48e282f2bd34e3a60f1d82521
2
+ SHA256:
3
+ metadata.gz: 9845c643e77dd1c0060bcda74af9628400395f110efb314b10b6f2d711110abe
4
+ data.tar.gz: 64b60853e4c7ff66107c0365cce2d34dca5b90690a7dbf9cc264ae5de1cf3de3
5
5
  SHA512:
6
- metadata.gz: a72e307e9379573aa6a068add8e04e00760f3c195c822d208c120e3af0b5dfd1b706daed1685e3d58aef5ee9d2fc6f3a5970b9c3be9abdb1b205c5dfb7699cb4
7
- data.tar.gz: 067184e0af61e726393c57ee5b829c96cb7f6f9b87cd0e7c58aee460ba8bf662caf566b1162fe4cb2f78589dc7d2b23ded8fe5d3a3620e17ec9943ed52748298
6
+ metadata.gz: 7f883486b2d5b9bb72da00bc43b56d748cbdd3143fb706aeb66f6a6e55ed2a621848f87566f10e421c4bb7751870cf09f4b9c8fe3b556de5a6748dc98cb35a43
7
+ data.tar.gz: edf75a64284bf45b06ca7858c09f7cde2abe6f671e5cf5ba7d3d5ad6860be441908899b87c7afd4cd4c51c7be8180c9ec124bbf2921907f4ae7d74d90d52b6f7
data/.rubocop.yml CHANGED
@@ -1,1063 +1,6 @@
1
1
  AllCops:
2
2
  Include:
3
- - "**/*.gemspec"
4
- - "**/*.podspec"
5
- - "**/*.jbuilder"
6
- - "**/*.rake"
7
- - "**/*.opal"
8
- - "**/Gemfile"
9
- - "**/Rakefile"
10
- - "**/Capfile"
11
- - "**/Guardfile"
12
- - "**/Podfile"
13
- - "**/Thorfile"
14
- - "**/Vagrantfile"
15
- - "**/Berksfile"
16
- - "**/Cheffile"
17
- - "**/Vagabondfile"
18
- Exclude:
19
- - "vendor/**/*"
20
- - "db/schema.rb"
21
- - "db/migrate/*"
22
- - "spec/spec_helper.rb"
23
- - "ffprober.gemspec"
24
- RunRailsCops: true
25
- DisplayCopNames: true
26
- StyleGuideCopsOnly: false
27
- Style/AccessModifierIndentation:
28
- Description: Check indentation of private/protected visibility modifiers.
29
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected
30
- Enabled: true
31
- EnforcedStyle: indent
32
- SupportedStyles:
33
- - outdent
34
- - indent
35
- Style/AlignHash:
36
- Description: Align the elements of a hash literal if they span more than one line.
37
- Enabled: true
38
- EnforcedHashRocketStyle: key
39
- EnforcedColonStyle: key
40
- EnforcedLastArgumentHashStyle: always_inspect
41
- SupportedLastArgumentHashStyles:
42
- - always_inspect
43
- - always_ignore
44
- - ignore_implicit
45
- - ignore_explicit
46
- Style/AlignParameters:
47
- Description: Align the parameters of a method call if they span more than one line.
48
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-double-indent
49
- Enabled: true
50
- EnforcedStyle: with_first_parameter
51
- SupportedStyles:
52
- - with_first_parameter
53
- - with_fixed_indentation
54
- Style/AndOr:
55
- Description: Use &&/|| instead of and/or.
56
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-and-or-or
57
- Enabled: true
58
- EnforcedStyle: always
59
- SupportedStyles:
60
- - always
61
- - conditionals
62
- Style/BarePercentLiterals:
63
- Description: Checks if usage of %() or %Q() matches configuration.
64
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand
65
- Enabled: true
66
- EnforcedStyle: bare_percent
67
- SupportedStyles:
68
- - percent_q
69
- - bare_percent
70
- Style/BracesAroundHashParameters:
71
- Description: Enforce braces style around hash parameters.
72
- Enabled: true
73
- EnforcedStyle: no_braces
74
- SupportedStyles:
75
- - braces
76
- - no_braces
77
- - context_dependent
78
- Style/CaseIndentation:
79
- Description: Indentation of when in a case/when/[else/]end.
80
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-when-to-case
81
- Enabled: true
82
- IndentWhenRelativeTo: case
83
- SupportedStyles:
84
- - case
85
- - end
86
- IndentOneStep: false
87
- Style/ClassAndModuleChildren:
88
- Description: Checks style of children classes and modules.
89
- Enabled: false
90
- EnforcedStyle: nested
91
- SupportedStyles:
92
- - nested
93
- - compact
94
- Style/ClassCheck:
95
- Description: Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.
96
- Enabled: true
97
- EnforcedStyle: is_a?
98
- SupportedStyles:
99
- - is_a?
100
- - kind_of?
101
- Style/CollectionMethods:
102
- Description: Preferred collection methods.
103
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size
104
- Enabled: true
105
- PreferredMethods:
106
- collect: map
107
- collect!: map!
108
- find: detect
109
- find_all: select
110
- reduce: inject
111
- Style/CommentAnnotation:
112
- Description: Checks formatting of special comments (TODO, FIXME, OPTIMIZE, HACK,
113
- REVIEW).
114
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#annotate-keywords
115
- Enabled: false
116
- Keywords:
117
- - TODO
118
- - FIXME
119
- - OPTIMIZE
120
- - HACK
121
- - REVIEW
122
- Style/DotPosition:
123
- Description: Checks the position of the dot in multi-line method calls.
124
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
125
- Enabled: true
126
- EnforcedStyle: trailing
127
- SupportedStyles:
128
- - leading
129
- - trailing
130
- Style/EmptyLineBetweenDefs:
131
- Description: Use empty lines between defs.
132
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods
133
- Enabled: true
134
- AllowAdjacentOneLineDefs: false
135
- Style/EmptyLinesAroundBlockBody:
136
- Description: Keeps track of empty lines around block bodies.
137
- Enabled: true
138
- EnforcedStyle: no_empty_lines
139
- SupportedStyles:
140
- - empty_lines
141
- - no_empty_lines
142
- Style/EmptyLinesAroundClassBody:
143
- Description: Keeps track of empty lines around class bodies.
144
- Enabled: true
145
- EnforcedStyle: no_empty_lines
146
- SupportedStyles:
147
- - empty_lines
148
- - no_empty_lines
149
- Style/EmptyLinesAroundModuleBody:
150
- Description: Keeps track of empty lines around module bodies.
151
- Enabled: true
152
- EnforcedStyle: no_empty_lines
153
- SupportedStyles:
154
- - empty_lines
155
- - no_empty_lines
156
- Style/Encoding:
157
- Description: Use UTF-8 as the source file encoding.
158
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#utf-8
159
- Enabled: false
160
- EnforcedStyle: always
161
- SupportedStyles:
162
- - when_needed
163
- - always
164
- Style/FileName:
165
- Description: Use snake_case for source file names.
166
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
167
- Enabled: false
168
- Exclude: []
169
- Style/FirstParameterIndentation:
170
- Description: Checks the indentation of the first parameter in a method call.
171
- Enabled: true
172
- EnforcedStyle: special_for_inner_method_call_in_parentheses
173
- SupportedStyles:
174
- - consistent
175
- - special_for_inner_method_call
176
- - special_for_inner_method_call_in_parentheses
177
- Style/For:
178
- Description: Checks use of for or each in multiline loops.
179
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-for-loops
180
- Enabled: true
181
- EnforcedStyle: each
182
- SupportedStyles:
183
- - for
184
- - each
185
- Style/FormatString:
186
- Description: Enforce the use of Kernel#sprintf, Kernel#format or String#%.
187
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#sprintf
188
- Enabled: false
189
- EnforcedStyle: format
190
- SupportedStyles:
191
- - format
192
- - sprintf
193
- - percent
194
- Style/GlobalVars:
195
- Description: Do not introduce global variables.
196
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#instance-vars
197
- Enabled: false
198
- AllowedVariables: []
199
- Style/GuardClause:
200
- Description: Check for conditionals that can be replaced with guard clauses
201
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
202
- Enabled: false
203
- MinBodyLength: 1
204
- Style/HashSyntax:
205
- Description: 'Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax { :a =>
206
- 1, :b => 2 }.'
207
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-literals
208
- Enabled: true
209
- EnforcedStyle: ruby19
210
- SupportedStyles:
211
- - ruby19
212
- - hash_rockets
213
- Style/IfUnlessModifier:
214
- Description: Favor modifier if/unless usage when you have a single-line body.
215
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
216
- Enabled: false
217
- MaxLineLength: 80
218
- Style/IndentationWidth:
219
- Description: Use 2 spaces for indentation.
220
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
221
- Enabled: true
222
- Width: 2
223
- Style/IndentHash:
224
- Description: Checks the indentation of the first key in a hash literal.
225
- Enabled: true
226
- EnforcedStyle: special_inside_parentheses
227
- SupportedStyles:
228
- - special_inside_parentheses
229
- - consistent
230
- Style/LambdaCall:
231
- Description: Use lambda.call(...) instead of lambda.(...).
232
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc-call
233
- Enabled: false
234
- EnforcedStyle: call
235
- SupportedStyles:
236
- - call
237
- - braces
238
- Style/Next:
239
- Description: Use `next` to skip iteration instead of a condition at the end.
240
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
241
- Enabled: false
242
- EnforcedStyle: skip_modifier_ifs
243
- MinBodyLength: 3
244
- SupportedStyles:
245
- - skip_modifier_ifs
246
- - always
247
- Style/NonNilCheck:
248
- Description: Checks for redundant nil checks.
249
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-non-nil-checks
250
- Enabled: true
251
- IncludeSemanticChanges: false
252
- Style/MethodDefParentheses:
253
- Description: Checks if the method definitions have or don't have parentheses.
254
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens
255
- Enabled: true
256
- EnforcedStyle: require_parentheses
257
- SupportedStyles:
258
- - require_parentheses
259
- - require_no_parentheses
260
- Style/MethodName:
261
- Description: Use the configured style when naming methods.
262
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
263
- Enabled: true
264
- EnforcedStyle: snake_case
265
- SupportedStyles:
266
- - snake_case
267
- - camelCase
268
- Style/MultilineOperationIndentation:
269
- Description: Checks indentation of binary operations that span more than one line.
270
- Enabled: true
271
- EnforcedStyle: aligned
272
- SupportedStyles:
273
- - aligned
274
- - indented
275
- Style/NumericLiterals:
276
- Description: Add underscores to large numeric literals to improve their readability.
277
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
278
- Enabled: false
279
- MinDigits: 5
280
- Style/ParenthesesAroundCondition:
281
- Description: Don't use parentheses around the condition of an if/unless/while.
282
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-parens-if
283
- Enabled: true
284
- AllowSafeAssignment: true
285
- Style/PercentLiteralDelimiters:
286
- Description: Use `%`-literal delimiters consistently
287
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-literal-braces
288
- Enabled: false
289
- PreferredDelimiters:
290
- "%": "()"
291
- "%i": "()"
292
- "%q": "()"
293
- "%Q": "()"
294
- "%r": "{}"
295
- "%s": "()"
296
- "%w": "()"
297
- "%W": "()"
298
- "%x": "()"
299
- Style/PercentQLiterals:
300
- Description: Checks if uses of %Q/%q match the configured preference.
301
- Enabled: true
302
- EnforcedStyle: lower_case_q
303
- SupportedStyles:
304
- - lower_case_q
305
- - upper_case_q
306
- Style/PredicateName:
307
- Description: Check the names of predicate methods.
308
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
309
- Enabled: true
310
- NamePrefix:
311
- - is_
312
- - has_
313
- - have_
314
- NamePrefixBlacklist:
315
- - is_
316
- Style/RaiseArgs:
317
- Description: Checks the arguments passed to raise/fail.
318
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
319
- Enabled: false
320
- EnforcedStyle: exploded
321
- SupportedStyles:
322
- - compact
323
- - exploded
324
- Style/RedundantReturn:
325
- Description: Don't use return where it's not required.
326
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-explicit-return
327
- Enabled: true
328
- AllowMultipleReturnValues: false
329
- Style/RegexpLiteral:
330
- Description: Use %r for regular expressions matching more than `MaxSlashes` '/'
331
- characters. Use %r only for regular expressions matching more than `MaxSlashes`
332
- '/' character.
333
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-r
334
- Enabled: false
335
- MaxSlashes: 1
336
- Style/Semicolon:
337
- Description: Don't use semicolons to terminate expressions.
338
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon
339
- Enabled: true
340
- AllowAsExpressionSeparator: false
341
- Style/SignalException:
342
- Description: Checks for proper usage of fail and raise.
343
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#fail-method
344
- Enabled: false
345
- EnforcedStyle: semantic
346
- SupportedStyles:
347
- - only_raise
348
- - only_fail
349
- - semantic
350
- Style/SingleLineBlockParams:
351
- Description: Enforces the names of some block params.
352
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#reduce-blocks
353
- Enabled: false
354
- Methods:
355
- - reduce:
356
- - a
357
- - e
358
- - inject:
359
- - a
360
- - e
361
- Style/SingleLineMethods:
362
- Description: Avoid single-line methods.
363
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
364
- Enabled: false
365
- AllowIfMethodIsEmpty: true
366
- Style/StringLiterals:
367
- Description: Checks if uses of quotes match the configured preference.
368
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
369
- Enabled: true
370
- EnforcedStyle: double_quotes
371
- SupportedStyles:
372
- - single_quotes
373
- - double_quotes
374
- Style/StringLiteralsInInterpolation:
375
- Description: Checks if uses of quotes inside expressions in interpolated strings
376
- match the configured preference.
377
- Enabled: true
378
- EnforcedStyle: single_quotes
379
- SupportedStyles:
380
- - single_quotes
381
- - double_quotes
382
- Style/SpaceAroundBlockParameters:
383
- Description: Checks the spacing inside and after block parameters pipes.
384
- Enabled: true
385
- EnforcedStyleInsidePipes: no_space
386
- SupportedStyles:
387
- - space
388
- - no_space
389
- Style/SpaceAroundEqualsInParameterDefault:
390
- Description: Checks that the equals signs in parameter default assignments have
391
- or don't have surrounding space depending on configuration.
392
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-around-equals
393
- Enabled: true
394
- EnforcedStyle: space
395
- SupportedStyles:
396
- - space
397
- - no_space
398
- Style/SpaceBeforeBlockBraces:
399
- Description: Checks that the left block brace has or doesn't have space before it.
400
- Enabled: true
401
- EnforcedStyle: space
402
- SupportedStyles:
403
- - space
404
- - no_space
405
- Style/SpaceInsideBlockBraces:
406
- Description: Checks that block braces have or don't have surrounding space. For
407
- blocks taking parameters, checks that the left brace has or doesn't have trailing
408
- space.
409
- Enabled: true
410
- EnforcedStyle: space
411
- SupportedStyles:
412
- - space
413
- - no_space
414
- EnforcedStyleForEmptyBraces: no_space
415
- SpaceBeforeBlockParameters: true
416
- Style/SpaceInsideHashLiteralBraces:
417
- Description: Use spaces inside hash literal braces - or don't.
418
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
419
- Enabled: true
420
- EnforcedStyle: space
421
- EnforcedStyleForEmptyBraces: no_space
422
- SupportedStyles:
423
- - space
424
- - no_space
425
- Style/SymbolProc:
426
- Description: Use symbols as procs instead of blocks when possible.
427
- Enabled: true
428
- IgnoredMethods:
429
- - respond_to
430
- Style/TrailingBlankLines:
431
- Description: Checks trailing blank lines and final newline.
432
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#newline-eof
433
- Enabled: true
434
- EnforcedStyle: final_newline
435
- SupportedStyles:
436
- - final_newline
437
- - final_blank_line
438
- Style/TrailingComma:
439
- Description: Checks for trailing comma in parameter lists and literals.
440
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
441
- Enabled: false
442
- EnforcedStyleForMultiline: no_comma
443
- SupportedStyles:
444
- - comma
445
- - no_comma
446
- Style/TrivialAccessors:
447
- Description: Prefer attr_* methods to trivial readers/writers.
448
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr_family
449
- Enabled: false
450
- ExactNameMatch: false
451
- AllowPredicates: false
452
- AllowDSLWriters: false
453
- Whitelist:
454
- - to_ary
455
- - to_a
456
- - to_c
457
- - to_enum
458
- - to_h
459
- - to_hash
460
- - to_i
461
- - to_int
462
- - to_io
463
- - to_open
464
- - to_path
465
- - to_proc
466
- - to_r
467
- - to_regexp
468
- - to_str
469
- - to_s
470
- - to_sym
471
- Style/VariableName:
472
- Description: Use the configured style when naming variables.
473
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
474
- Enabled: true
475
- EnforcedStyle: snake_case
476
- SupportedStyles:
477
- - snake_case
478
- - camelCase
479
- Style/WhileUntilModifier:
480
- Description: Favor modifier while/until usage when you have a single-line body.
481
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier
482
- Enabled: false
483
- MaxLineLength: 80
484
- Style/WordArray:
485
- Description: Use %w or %W for arrays of words.
486
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-w
487
- Enabled: false
488
- MinSize: 0
489
- WordRegex: !ruby/regexp /\A[\p{Word}]+\z/
490
- Metrics/AbcSize:
491
- Description: A calculated magnitude based on number of assignments, branches, and
492
- conditions.
493
- Enabled: true
494
- Max: 15
495
- Metrics/BlockNesting:
496
- Description: Avoid excessive block nesting
497
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count
498
- Enabled: false
499
- Max: 3
500
- Metrics/ClassLength:
501
- Description: Avoid classes longer than 100 lines of code.
502
- Enabled: false
503
- CountComments: false
504
- Max: 100
505
- Metrics/CyclomaticComplexity:
506
- Description: A complexity metric that is strongly correlated to the number of test
507
- cases needed to validate a method.
508
- Enabled: false
509
- Max: 6
510
- Metrics/LineLength:
511
- Description: Limit lines to 80 characters.
512
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#80-character-limits
513
- Enabled: false
514
- Max: 80
515
- AllowURI: true
516
- URISchemes:
517
- - http
518
- - https
519
- Metrics/MethodLength:
520
- Description: Avoid methods longer than 10 lines of code.
521
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
522
- Enabled: false
523
- CountComments: false
524
- Max: 10
525
- Metrics/ParameterLists:
526
- Description: Avoid parameter lists longer than three or four parameters.
527
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
528
- Enabled: false
529
- Max: 5
530
- CountKeywordArgs: true
531
- Metrics/PerceivedComplexity:
532
- Description: A complexity metric geared towards measuring complexity for a human
533
- reader.
534
- Enabled: false
535
- Max: 7
536
- Lint/AssignmentInCondition:
537
- Description: Don't use assignment in conditions.
538
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
539
- Enabled: false
540
- AllowSafeAssignment: true
541
- Lint/EndAlignment:
542
- Description: Align ends correctly.
543
- Enabled: true
544
- AlignWith: keyword
545
- SupportedStyles:
546
- - keyword
547
- - variable
548
- Lint/DefEndAlignment:
549
- Description: Align ends corresponding to defs correctly.
550
- Enabled: true
551
- AlignWith: start_of_line
552
- SupportedStyles:
553
- - start_of_line
554
- - def
555
- Rails/ActionFilter:
556
- Description: Enforces consistent use of action filter methods.
557
- Enabled: false
558
- EnforcedStyle: action
559
- SupportedStyles:
560
- - action
561
- - filter
562
- Include:
563
- - app/controllers/**/*.rb
564
- Rails/DefaultScope:
565
- Description: Checks if the argument passed to default_scope is a block.
566
- Enabled: true
567
- Include:
568
- - app/models/**/*.rb
569
- Rails/HasAndBelongsToMany:
570
- Description: Prefer has_many :through to has_and_belongs_to_many.
571
- Enabled: true
572
- Include:
573
- - app/models/**/*.rb
574
- Rails/Output:
575
- Description: Checks for calls to puts, print, etc.
576
- Enabled: true
577
- Include:
578
- - app/**/*.rb
579
- - config/**/*.rb
580
- - db/**/*.rb
581
- - lib/**/*.rb
582
- Rails/ReadWriteAttribute:
583
- Description: Checks for read_attribute(:attr) and write_attribute(:attr, val).
584
- Enabled: true
585
- Include:
586
- - app/models/**/*.rb
587
- Rails/ScopeArgs:
588
- Description: Checks the arguments of ActiveRecord scopes.
589
- Enabled: true
590
- Include:
591
- - app/models/**/*.rb
592
- Rails/Validation:
593
- Description: Use validates :attribute, hash of validations.
594
- Enabled: true
595
- Include:
596
- - app/models/**/*.rb
597
- Style/InlineComment:
598
- Description: Avoid inline comments.
599
- Enabled: false
600
- Style/MethodCalledOnDoEndBlock:
601
- Description: Avoid chaining a method call on a do...end block.
602
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
603
- Enabled: false
604
- Style/SymbolArray:
605
- Description: Use %i or %I for arrays of symbols.
606
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-i
607
- Enabled: false
608
- Style/AccessorMethodName:
609
- Description: Check the naming of accessor methods for get_/set_.
610
- Enabled: false
611
- Style/Alias:
612
- Description: Use alias_method instead of alias.
613
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
614
- Enabled: false
615
- Style/AlignArray:
616
- Description: Align the elements of an array literal if they span more than one line.
617
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays
618
- Enabled: true
619
- Style/ArrayJoin:
620
- Description: Use Array#join instead of Array#*.
621
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#array-join
622
- Enabled: false
623
- Style/AsciiComments:
624
- Description: Use only ascii symbols in comments.
625
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-comments
626
- Enabled: false
627
- Style/AsciiIdentifiers:
628
- Description: Use only ascii symbols in identifiers.
629
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-identifiers
630
- Enabled: false
631
- Style/Attr:
632
- Description: Checks for uses of Module#attr.
633
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr
634
- Enabled: false
635
- Style/BeginBlock:
636
- Description: Avoid the use of BEGIN blocks.
637
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks
638
- Enabled: true
639
- Style/BlockComments:
640
- Description: Do not use block comments.
641
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-block-comments
642
- Enabled: true
643
- Style/BlockEndNewline:
644
- Description: Put end statement of multiline block on its own line.
645
- Enabled: true
646
- Style/Blocks:
647
- Description: Avoid using {...} for multi-line blocks (multiline chaining is always
648
- ugly). Prefer {...} over do...end for single-line blocks.
649
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
650
- Enabled: true
651
- Style/CaseEquality:
652
- Description: Avoid explicit use of the case equality operator(===).
653
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-case-equality
654
- Enabled: false
655
- Style/CharacterLiteral:
656
- Description: Checks for uses of character literals.
657
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-character-literals
658
- Enabled: false
659
- Style/ClassAndModuleCamelCase:
660
- Description: Use CamelCase for classes and modules.
661
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#camelcase-classes
662
- Enabled: true
663
- Style/ClassMethods:
664
- Description: Use self when defining module/class methods.
665
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#def-self-singletons
666
- Enabled: true
667
- Style/ClassVars:
668
- Description: Avoid the use of class variables.
669
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-class-vars
670
- Enabled: false
671
- Style/ColonMethodCall:
672
- Description: 'Do not use :: for method call.'
673
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#double-colons
674
- Enabled: false
675
- Style/CommentIndentation:
676
- Description: Indentation of comments.
677
- Enabled: true
678
- Style/ConstantName:
679
- Description: Constants should use SCREAMING_SNAKE_CASE.
680
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#screaming-snake-case
681
- Enabled: true
682
- Style/DefWithParentheses:
683
- Description: Use def with parentheses when there are arguments.
684
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens
685
- Enabled: true
686
- Style/DeprecatedHashMethods:
687
- Description: Checks for use of deprecated Hash methods.
688
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-key
689
- Enabled: false
690
- Style/Documentation:
691
- Description: Document classes and non-namespace modules.
692
- Enabled: false
693
- Style/DoubleNegation:
694
- Description: Checks for uses of double negation (!!).
695
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang
696
- Enabled: false
697
- Style/EachWithObject:
698
- Description: Prefer `each_with_object` over `inject` or `reduce`.
699
- Enabled: false
700
- Style/ElseAlignment:
701
- Description: Align elses and elsifs correctly.
702
- Enabled: true
703
- Style/EmptyElse:
704
- Description: Avoid empty else-clauses.
705
- Enabled: true
706
- Style/EmptyLines:
707
- Description: Don't use several empty lines in a row.
708
- Enabled: true
709
- Style/EmptyLinesAroundAccessModifier:
710
- Description: Keep blank lines around access modifiers.
711
- Enabled: true
712
- Style/EmptyLinesAroundMethodBody:
713
- Description: Keeps track of empty lines around method bodies.
714
- Enabled: true
715
- Style/EmptyLiteral:
716
- Description: Prefer literals to Array.new/Hash.new/String.new.
717
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
718
- Enabled: false
719
- Style/EndBlock:
720
- Description: Avoid the use of END blocks.
721
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-END-blocks
722
- Enabled: true
723
- Style/EndOfLine:
724
- Description: Use Unix-style line endings.
725
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#crlf
726
- Enabled: true
727
- Style/EvenOdd:
728
- Description: Favor the use of Fixnum#even? && Fixnum#odd?
729
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
730
- Enabled: false
731
- Style/FlipFlop:
732
- Description: Checks for flip flops
733
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-flip-flops
734
- Enabled: false
735
- Style/IfWithSemicolon:
736
- Description: Do not use if x; .... Use the ternary operator instead.
737
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs
738
- Enabled: false
739
- Style/IndentationConsistency:
740
- Description: Keep indentation straight.
741
- Enabled: true
742
- Style/IndentArray:
743
- Description: Checks the indentation of the first element in an array literal.
744
- Enabled: true
745
- Style/InfiniteLoop:
746
- Description: Use Kernel#loop for infinite loops.
747
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#infinite-loop
748
- Enabled: true
749
- Style/Lambda:
750
- Description: Use the new lambda literal syntax for single-line blocks.
751
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#lambda-multi-line
752
- Enabled: false
753
- Style/LeadingCommentSpace:
754
- Description: Comments should start with a space.
755
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-space
756
- Enabled: true
757
- Style/LineEndConcatenation:
758
- Description: Use \ instead of + or << to concatenate two string literals at line
759
- end.
760
- Enabled: false
761
- Style/MethodCallParentheses:
762
- Description: Do not use parentheses for method calls with no arguments.
763
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-args-no-parens
764
- Enabled: true
765
- Style/ModuleFunction:
766
- Description: Checks for usage of `extend self` in modules.
767
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
768
- Enabled: false
769
- Style/MultilineBlockChain:
770
- Description: Avoid multi-line chains of blocks.
771
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
772
- Enabled: true
773
- Style/MultilineBlockLayout:
774
- Description: Ensures newlines after multiline block do statements.
775
- Enabled: true
776
- Style/MultilineIfThen:
777
- Description: Do not use then for multi-line if/unless.
778
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-then
779
- Enabled: true
780
- Style/MultilineTernaryOperator:
781
- Description: 'Avoid multi-line ?: (the ternary operator); use if/unless instead.'
782
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary
783
- Enabled: true
784
- Style/NegatedIf:
785
- Description: Favor unless over if for negative conditions (or control flow or).
786
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#unless-for-negatives
787
- Enabled: false
788
- Style/NegatedWhile:
789
- Description: Favor until over while for negative conditions.
790
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#until-for-negatives
791
- Enabled: false
792
- Style/NestedTernaryOperator:
793
- Description: Use one expression per branch in a ternary operator.
794
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-ternary
795
- Enabled: true
796
- Style/NilComparison:
797
- Description: Prefer x.nil? to x == nil.
798
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
799
- Enabled: false
800
- Style/Not:
801
- Description: Use ! instead of not.
802
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#bang-not-not
803
- Enabled: false
804
- Style/OneLineConditional:
805
- Description: Favor the ternary operator(?:) over if/then/else/end constructs.
806
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
807
- Enabled: false
808
- Style/OpMethod:
809
- Description: When defining binary operators, name the argument other.
810
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#other-arg
811
- Enabled: false
812
- Style/PerlBackrefs:
813
- Description: Avoid Perl-style regex back references.
814
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
815
- Enabled: false
816
- Style/Proc:
817
- Description: Use proc instead of Proc.new.
818
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc
819
- Enabled: false
820
- Style/RedundantBegin:
821
- Description: Don't use begin blocks when they are not needed.
822
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#begin-implicit
823
- Enabled: true
824
- Style/RedundantException:
825
- Description: Checks for an obsolete RuntimeException argument in raise/fail.
826
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror
827
- Enabled: true
828
- Style/RedundantSelf:
829
- Description: Don't use self where it's not needed.
830
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-self-unless-required
831
- Enabled: true
832
- Style/RescueModifier:
833
- Description: Avoid using rescue in its modifier form.
834
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers
835
- Enabled: true
836
- Style/SelfAssignment:
837
- Description: Checks for places where self-assignment shorthand should have been
838
- used.
839
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#self-assignment
840
- Enabled: false
841
- Style/SingleSpaceBeforeFirstArg:
842
- Description: Checks that exactly one space is used between a method name and the
843
- first argument for method calls without parentheses.
844
- Enabled: true
845
- Style/SpaceAfterColon:
846
- Description: Use spaces after colons.
847
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
848
- Enabled: true
849
- Style/SpaceAfterComma:
850
- Description: Use spaces after commas.
851
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
852
- Enabled: true
853
- Style/SpaceAfterControlKeyword:
854
- Description: Use spaces after if/elsif/unless/while/until/case/when.
855
- Enabled: true
856
- Style/SpaceAfterMethodName:
857
- Description: Do not put a space between a method name and the opening parenthesis
858
- in a method definition.
859
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
860
- Enabled: true
861
- Style/SpaceAfterNot:
862
- Description: Tracks redundant space after the ! operator.
863
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-bang
864
- Enabled: true
865
- Style/SpaceAfterSemicolon:
866
- Description: Use spaces after semicolons.
867
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
868
- Enabled: true
869
- Style/SpaceBeforeComma:
870
- Description: No spaces before commas.
871
- Enabled: true
872
- Style/SpaceBeforeComment:
873
- Description: Checks for missing space between code and a comment on the same line.
874
- Enabled: true
875
- Style/SpaceBeforeSemicolon:
876
- Description: No spaces before semicolons.
877
- Enabled: true
878
- Style/SpaceAroundOperators:
879
- Description: Use spaces around operators.
880
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
881
- Enabled: true
882
- Style/SpaceBeforeModifierKeyword:
883
- Description: Put a space before the modifier keyword.
884
- Enabled: true
885
- Style/SpaceInsideBrackets:
886
- Description: No spaces after [ or before ].
887
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
888
- Enabled: true
889
- Style/SpaceInsideParens:
890
- Description: No spaces after ( or before ).
891
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
892
- Enabled: true
893
- Style/SpaceInsideRangeLiteral:
894
- Description: No spaces inside range literals.
895
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals
896
- Enabled: true
897
- Style/SpecialGlobalVars:
898
- Description: Avoid Perl-style global variables.
899
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
900
- Enabled: false
901
- Style/StructInheritance:
902
- Description: Checks for inheritance from Struct.new.
903
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new
904
- Enabled: true
905
- Style/Tab:
906
- Description: No hard tabs.
907
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
908
- Enabled: true
909
- Style/TrailingWhitespace:
910
- Description: Avoid trailing whitespace.
911
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace
912
- Enabled: true
913
- Style/UnlessElse:
914
- Description: Do not use unless with else. Rewrite these with the positive case first.
915
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-else-with-unless
916
- Enabled: true
917
- Style/UnneededCapitalW:
918
- Description: Checks for %W when interpolation is not needed.
919
- Enabled: true
920
- Style/UnneededPercentQ:
921
- Description: Checks for %q/%Q when single quotes or double quotes would do.
922
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q
923
- Enabled: true
924
- Style/UnneededPercentX:
925
- Description: Checks for %x when `` would do.
926
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-x
927
- Enabled: true
928
- Style/VariableInterpolation:
929
- Description: Don't interpolate global, instance and class variables directly in
930
- strings.
931
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
932
- Enabled: false
933
- Style/WhenThen:
934
- Description: Use when x then ... for one-line cases.
935
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
936
- Enabled: false
937
- Style/WhileUntilDo:
938
- Description: Checks for redundant do after while or until.
939
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do
940
- Enabled: true
941
- Lint/AmbiguousOperator:
942
- Description: Checks for ambiguous operators in the first argument of a method invocation
943
- without parentheses.
944
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-as-args
945
- Enabled: false
946
- Lint/AmbiguousRegexpLiteral:
947
- Description: Checks for ambiguous regexp literals in the first argument of a method
948
- invocation without parenthesis.
949
- Enabled: false
950
- Lint/BlockAlignment:
951
- Description: Align block ends correctly.
952
- Enabled: true
953
- Lint/ConditionPosition:
954
- Description: Checks for condition placed in a confusing position relative to the
955
- keyword.
956
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#same-line-condition
957
- Enabled: false
958
- Lint/Debugger:
959
- Description: Check for debugger calls.
960
- Enabled: true
961
- Lint/DeprecatedClassMethods:
962
- Description: Check for deprecated class method calls.
963
- Enabled: false
964
- Lint/DuplicateMethods:
965
- Description: Check for duplicate methods calls.
966
- Enabled: true
967
- Lint/ElseLayout:
968
- Description: Check for odd code arrangement in an else block.
969
- Enabled: false
970
- Lint/EmptyEnsure:
971
- Description: Checks for empty ensure block.
972
- Enabled: true
973
- Lint/EmptyInterpolation:
974
- Description: Checks for empty string interpolation.
975
- Enabled: true
976
- Lint/EndInMethod:
977
- Description: END blocks should not be placed inside method definitions.
978
- Enabled: true
979
- Lint/EnsureReturn:
980
- Description: Do not use return in an ensure block.
981
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-return-ensure
982
- Enabled: true
983
- Lint/Eval:
984
- Description: The use of eval represents a serious security risk.
985
- Enabled: true
986
- Lint/HandleExceptions:
987
- Description: Don't suppress exception.
988
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
989
- Enabled: false
990
- Lint/InvalidCharacterLiteral:
991
- Description: Checks for invalid character literals with a non-escaped whitespace
992
- character.
993
- Enabled: false
994
- Lint/LiteralInCondition:
995
- Description: Checks of literals used in conditions.
996
- Enabled: false
997
- Lint/LiteralInInterpolation:
998
- Description: Checks for literals used in interpolation.
999
- Enabled: false
1000
- Lint/Loop:
1001
- Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while
1002
- for post-loop tests.
1003
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#loop-with-break
1004
- Enabled: false
1005
- Lint/ParenthesesAsGroupedExpression:
1006
- Description: Checks for method calls with a space before the opening parenthesis.
1007
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
1008
- Enabled: false
1009
- Lint/RequireParentheses:
1010
- Description: Use parentheses in the method call to avoid confusion about precedence.
1011
- Enabled: false
1012
- Lint/RescueException:
1013
- Description: Avoid rescuing the Exception class.
1014
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-blind-rescues
1015
- Enabled: true
1016
- Lint/ShadowingOuterLocalVariable:
1017
- Description: Do not use the same name as outer local variable for block arguments
1018
- or block local variables.
1019
- Enabled: true
1020
- Lint/SpaceBeforeFirstArg:
1021
- Description: Put a space between a method name and the first argument in a method
1022
- call without parentheses.
1023
- Enabled: true
1024
- Lint/StringConversionInInterpolation:
1025
- Description: Checks for Object#to_s usage in string interpolation.
1026
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-to-s
1027
- Enabled: true
1028
- Lint/UnderscorePrefixedVariableName:
1029
- Description: Do not use prefix `_` for a variable that is used.
1030
- Enabled: false
1031
- Lint/UnusedBlockArgument:
1032
- Description: Checks for unused block arguments.
1033
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
1034
- Enabled: true
1035
- Lint/UnusedMethodArgument:
1036
- Description: Checks for unused method arguments.
1037
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
1038
- Enabled: true
1039
- Lint/UnreachableCode:
1040
- Description: Unreachable code.
1041
- Enabled: true
1042
- Lint/UselessAccessModifier:
1043
- Description: Checks for useless access modifiers.
1044
- Enabled: true
1045
- Lint/UselessAssignment:
1046
- Description: Checks for useless assignment to a local variable.
1047
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
1048
- Enabled: true
1049
- Lint/UselessComparison:
1050
- Description: Checks for comparison of something with itself.
1051
- Enabled: true
1052
- Lint/UselessElseWithoutRescue:
1053
- Description: Checks for useless `else` in `begin..end` without `rescue`.
1054
- Enabled: true
1055
- Lint/UselessSetterCall:
1056
- Description: Checks for useless setter call to a local variable.
1057
- Enabled: true
1058
- Lint/Void:
1059
- Description: Possible use of operator/literal/variable in void context.
1060
- Enabled: false
1061
- Rails/Delegate:
1062
- Description: Prefer delegate method for delegations.
3
+ - Rakefile
4
+ - config.ru
5
+ Documentation:
1063
6
  Enabled: false