1
1
# This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2021-03-28 01:11:19 UTC using RuboCop version 1.10 .0.
2
+ # `rubocop --auto-gen-config --auto-gen-only-exclude `
3
+ # on 2022-01-15 20:13:59 UTC using RuboCop version 1.23 .0.
4
4
# The point is for the user to remove these configuration records
5
5
# one by one as the offenses are removed from the code base.
6
6
# Note that changes in the inspected code, or installation of new
7
7
# versions of RuboCop, may require this file to be generated again.
8
8
9
- # Offense count: 41
9
+ # Offense count: 40
10
10
# Configuration parameters: Include, IgnoredGems, OnlyFor.
11
11
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
12
12
Bundler/GemComment :
13
13
Exclude :
14
14
- ' Gemfile'
15
15
16
+ # Offense count: 40
17
+ # Configuration parameters: Include, AllowedGems.
18
+ # SupportedStyles: required, forbidden
19
+ # Include: **/*.gemfile, **/Gemfile, **/gems.rb
20
+ Bundler/GemVersion :
21
+ EnforcedStyle : forbidden
22
+
16
23
# Offense count: 9
17
24
# Cop supports --auto-correct.
18
25
Layout/FirstMethodArgumentLineBreak :
@@ -24,6 +31,14 @@ Layout/FirstMethodArgumentLineBreak:
24
31
- ' spec/repositories/story_repository_spec.rb'
25
32
- ' spec/tasks/fetch_feed_spec.rb'
26
33
34
+ # Offense count: 1
35
+ # Cop supports --auto-correct.
36
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
37
+ # SupportedStyles: aligned, indented
38
+ Layout/LineEndStringConcatenationIndentation :
39
+ Exclude :
40
+ - ' spec/helpers/url_helpers_spec.rb'
41
+
27
42
# Offense count: 4
28
43
# Cop supports --auto-correct.
29
44
# Configuration parameters: EnforcedStyle.
@@ -44,7 +59,29 @@ Layout/MultilineMethodArgumentLineBreaks:
44
59
- ' spec/controllers/sessions_controller_spec.rb'
45
60
- ' spec/javascript/test_controller.rb'
46
61
47
- # Offense count: 744
62
+ # Offense count: 40
63
+ # Cop supports --auto-correct.
64
+ # Configuration parameters: InspectBlocks.
65
+ Layout/RedundantLineBreak :
66
+ Enabled : false
67
+
68
+ # Offense count: 8
69
+ # Cop supports --auto-correct.
70
+ Layout/SingleLineBlockChain :
71
+ Exclude :
72
+ - ' app/tasks/change_password.rb'
73
+ - ' spec/integration/feed_importing_spec.rb'
74
+ - ' spec/models/story_spec.rb'
75
+ - ' spec/tasks/fetch_feeds_spec.rb'
76
+
77
+ # Offense count: 2
78
+ # Cop supports --auto-correct.
79
+ Lint/AmbiguousOperatorPrecedence :
80
+ Exclude :
81
+ - ' spec/factories/feed_factory.rb'
82
+ - ' spec/factories/group_factory.rb'
83
+
84
+ # Offense count: 754
48
85
# Configuration parameters: Only, Ignore.
49
86
Lint/ConstantResolution :
50
87
Enabled : false
@@ -58,6 +95,7 @@ Lint/EmptyBlock:
58
95
# Offense count: 13
59
96
# Cop supports --auto-correct.
60
97
# Configuration parameters: IgnoredMethods, IgnoredClasses.
98
+ # IgnoredMethods: ago, from_now, second, seconds, minute, minutes, hour, hours, day, days, week, weeks, fortnight, fortnights, in_milliseconds
61
99
# IgnoredClasses: Time, DateTime
62
100
Lint/NumberConversion :
63
101
Exclude :
@@ -132,7 +170,7 @@ RSpec/DescribeClass:
132
170
- ' spec/integration/feed_importing_spec.rb'
133
171
- ' spec/utils/i18n_support_spec.rb'
134
172
135
- # Offense count: 132
173
+ # Offense count: 141
136
174
# Cop supports --auto-correct.
137
175
# Configuration parameters: SkipBlocks, EnforcedStyle.
138
176
# SupportedStyles: described_class, explicit
@@ -158,9 +196,9 @@ RSpec/EmptyLineAfterHook:
158
196
- ' spec/controllers/stories_controller_spec.rb'
159
197
160
198
# Offense count: 50
161
- # Configuration parameters: Max .
199
+ # Configuration parameters: CountAsOne .
162
200
RSpec/ExampleLength :
163
- Enabled : false
201
+ Max : 35
164
202
165
203
# Offense count: 18
166
204
# Cop supports --auto-correct.
@@ -244,14 +282,17 @@ RSpec/MessageExpectation:
244
282
RSpec/MessageSpies :
245
283
Enabled : false
246
284
247
- # Offense count: 96
285
+ # Offense count: 97
248
286
RSpec/MultipleExpectations :
249
287
Max : 8
250
288
251
289
# Offense count: 7
252
- # Configuration parameters: AllowSubject.
290
+ # Configuration parameters: AllowSubject, Max .
253
291
RSpec/MultipleMemoizedHelpers :
254
- Max : 9
292
+ Exclude :
293
+ - ' spec/fever_api_spec.rb'
294
+ - ' spec/tasks/fetch_feed_spec.rb'
295
+ - ' spec/utils/feed_discovery_spec.rb'
255
296
256
297
# Offense count: 28
257
298
# Configuration parameters: IgnoreSharedExamples.
@@ -270,8 +311,12 @@ RSpec/NamedSubject:
270
311
- ' spec/fever_api/write_mark_item_spec.rb'
271
312
272
313
# Offense count: 9
314
+ # Configuration parameters: Max.
273
315
RSpec/NestedGroups :
274
- Max : 4
316
+ Exclude :
317
+ - ' spec/commands/feeds/add_new_feed_spec.rb'
318
+ - ' spec/controllers/stories_controller_spec.rb'
319
+ - ' spec/integration/feed_importing_spec.rb'
275
320
276
321
# Offense count: 1
277
322
# Cop supports --auto-correct.
@@ -367,6 +412,17 @@ Rails/RakeEnvironment:
367
412
Exclude :
368
413
- ' Rakefile'
369
414
415
+ # Offense count: 5
416
+ # Configuration parameters: Include.
417
+ # Include: db/migrate/*.rb
418
+ Rails/ReversibleMigrationMethodDefinition :
419
+ Exclude :
420
+ - ' db/migrate/20130423001740_drop_email_from_user.rb'
421
+ - ' db/migrate/20130423180446_remove_author_from_stories.rb'
422
+ - ' db/migrate/20130425222157_add_delayed_job.rb'
423
+ - ' db/migrate/20130821020313_update_nil_entry_ids.rb'
424
+ - ' db/migrate/20130905204142_use_text_datatype_for_title_and_entry_id.rb'
425
+
370
426
# Offense count: 15
371
427
# Cop supports --auto-correct.
372
428
# Configuration parameters: AllowImplicitReturn, AllowedReceivers.
@@ -395,7 +451,7 @@ Rails/SkipsModelValidations:
395
451
- ' db/migrate/20140421224454_fix_invalid_unicode.rb'
396
452
- ' db/migrate/20141102103617_fix_invalid_titles_with_unicode_line_endings.rb'
397
453
398
- # Offense count: 30
454
+ # Offense count: 27
399
455
# Cop supports --auto-correct.
400
456
# Configuration parameters: EnforcedStyle.
401
457
# SupportedStyles: strict, flexible
@@ -477,9 +533,9 @@ Style/InlineComment:
477
533
Exclude :
478
534
- ' app/utils/opml_parser.rb'
479
535
480
- # Offense count: 690
536
+ # Offense count: 699
481
537
# Cop supports --auto-correct.
482
- # Configuration parameters: IgnoreMacros, IgnoredMethods, IgnoredPatterns, IncludedMacros, AllowParenthesesInMultilineCall, AllowParenthesesInChaining, AllowParenthesesInCamelCaseMethod, EnforcedStyle.
538
+ # Configuration parameters: IgnoreMacros, IgnoredMethods, IgnoredPatterns, IncludedMacros, AllowParenthesesInMultilineCall, AllowParenthesesInChaining, AllowParenthesesInCamelCaseMethod, AllowParenthesesInStringInterpolation, EnforcedStyle.
483
539
# SupportedStyles: require_parentheses, omit_parentheses
484
540
Style/MethodCallWithArgsParentheses :
485
541
Enabled : false
@@ -506,8 +562,16 @@ Style/NumericPredicate:
506
562
Exclude :
507
563
- ' app/commands/stories/mark_group_as_read.rb'
508
564
565
+ # Offense count: 4
566
+ Style/OpenStructUse :
567
+ Exclude :
568
+ - ' spec/factories/feed_factory.rb'
569
+ - ' spec/factories/group_factory.rb'
570
+ - ' spec/factories/story_factory.rb'
571
+ - ' spec/factories/user_factory.rb'
572
+
509
573
# Offense count: 28
510
- # Configuration parameters: SuspiciousParamNames.
574
+ # Configuration parameters: SuspiciousParamNames, Allowlist .
511
575
# SuspiciousParamNames: options, opts, args, params, parameters
512
576
Style/OptionHash :
513
577
Enabled : false
@@ -525,6 +589,14 @@ Style/PercentLiteralDelimiters:
525
589
- ' spec/helpers/url_helpers_spec.rb'
526
590
- ' spec/javascript/test_controller.rb'
527
591
592
+ # Offense count: 6
593
+ # Cop supports --auto-correct.
594
+ # Configuration parameters: EnforcedStyle.
595
+ # SupportedStyles: same_as_string_literals, single_quotes, double_quotes
596
+ Style/QuotedSymbols :
597
+ Exclude :
598
+ - ' app/controllers/feeds_controller.rb'
599
+
528
600
# Offense count: 1
529
601
# Cop supports --auto-correct.
530
602
# Configuration parameters: EnforcedStyle.
@@ -563,7 +635,7 @@ Style/StaticClass:
563
635
- ' app/utils/api_key.rb'
564
636
- ' app/utils/content_sanitizer.rb'
565
637
566
- # Offense count: 19
638
+ # Offense count: 18
567
639
# Cop supports --auto-correct.
568
640
Style/StringHashKeys :
569
641
Exclude :
@@ -581,11 +653,17 @@ Style/StringHashKeys:
581
653
- ' spec/fever_api/read_links_spec.rb'
582
654
- ' spec/fever_api/sync_saved_item_ids_spec.rb'
583
655
- ' spec/fever_api/sync_unread_item_ids_spec.rb'
584
- - ' spec/helpers/authentications_helper_spec.rb'
585
656
586
657
# Offense count: 7
587
658
# Cop supports --auto-correct.
588
659
# Configuration parameters: MinSize.
589
660
# SupportedStyles: percent, brackets
590
661
Style/SymbolArray :
591
662
EnforcedStyle : brackets
663
+
664
+ # Offense count: 6
665
+ Style/TopLevelMethodDefinition :
666
+ Exclude :
667
+ - ' spec/integration/feed_importing_spec.rb'
668
+ - ' spec/spec_helper.rb'
669
+ - ' spec/support/active_record.rb'
0 commit comments