forked from forem/forem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop_todo.yml
82 lines (73 loc) · 2.42 KB
/
.rubocop_todo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2019-08-01 11:17:00 -0400 using RuboCop version 0.73.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 9
Metrics/AbcSize:
Enabled: true
Max: 50
Exclude:
- 'app/controllers/articles_controller.rb'
- 'app/controllers/comments_controller.rb'
- 'app/controllers/follows_controller.rb'
- 'app/controllers/internal/articles_controller.rb'
- 'app/controllers/omniauth_callbacks_controller.rb'
- 'app/labor/hex_comparer.rb'
- 'app/models/tweet.rb'
- 'app/services/notifications/new_comment/send.rb'
- 'app/services/notifications/reactions/send.rb'
# Offense count: 13
# Configuration parameters: CountComments, ExcludedMethods.
# ExcludedMethods: refine
Metrics/BlockLength:
Max: 63
# Offense count: 1
# Configuration parameters: Max.
RSpec/ExampleLength:
Max: 10
Exclude:
- 'spec/system/**/*'
- 'spec/requests/display_ad_events_spec.rb'
# Offense count: 341
# Configuration parameters: AggregateFailuresByDefault.
RSpec/MultipleExpectations:
Max: 8
# Offense count: 1
# Configuration parameters: Include.
# Include: app/helpers/**/*.rb
Rails/HelperInstanceVariable:
Exclude:
- 'app/helpers/application_helper.rb'
# Offense count: 16
Rails/OutputSafety:
Exclude:
- 'app/helpers/application_helper.rb'
- 'app/helpers/comments_helper.rb'
- 'app/labor/markdown_parser.rb'
- 'app/liquid_tags/github_tag/github_issue_tag.rb'
- 'app/liquid_tags/liquid_tag_base.rb'
- 'app/models/comment.rb'
- 'app/models/display_ad.rb'
- 'app/models/message.rb'
- 'app/views/api/v0/articles/show.json.jbuilder'
- 'app/views/articles/feed.rss.builder'
# Offense count: 20
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
Enabled: false
# Offense count: 1
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Exclude:
- 'app/models/article.rb'
# Offense count: 2671
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
Max: 380