forked from rubygems/rubygems.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop_todo.yml
161 lines (142 loc) · 5.09 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2022-06-17 19:11:11 UTC using RuboCop version 1.26.1.
# 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: 15
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
Bundler/OrderedGems:
Exclude:
- 'Gemfile'
# Offense count: 2
Lint/DuplicateMethods:
Exclude:
- 'test/functional/api/v1/downloads_controller_test.rb'
- 'test/functional/api/v1/rubygems_controller_test.rb'
# Offense count: 1
# This cop supports unsafe auto-correction (--auto-correct-all).
# Configuration parameters: AllowComments.
Lint/UselessMethodDefinition:
Exclude:
- 'config/initializers/gem_version_monkeypatch.rb'
# Offense count: 5
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
# IgnoredMethods: refine
Metrics/BlockLength:
Max: 64
# Offense count: 1
# Configuration parameters: IgnoredMethods.
Metrics/CyclomaticComplexity:
Max: 10
Exclude:
- 'app/models/concerns/rubygem_searchable.rb'
# Offense count: 1
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'lib/rubygem_fs.rb'
# Offense count: 16
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers.
# SupportedStyles: snake_case, normalcase, non_integer
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
Naming/VariableNumber:
Exclude:
- 'test/functional/api/v1/downloads_controller_test.rb'
- 'test/models/gem_download_test.rb'
- 'test/models/concerns/rubygem_searchable_test.rb'
# Offense count: 1
Rails/DeprecatedActiveModelErrorsMethods:
Exclude:
- 'app/models/rubygem.rb'
# Offense count: 78
# This cop supports unsafe auto-correction (--auto-correct-all).
# Configuration parameters: Whitelist, AllowedMethods, AllowedReceivers.
# Whitelist: find_by_sql
# AllowedMethods: find_by_sql
# AllowedReceivers: Gem::Specification
Rails/DynamicFindBy:
Enabled: false
# Offense count: 2
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/HasManyOrHasOneDependent:
Exclude:
- 'app/models/rubygem.rb'
# Offense count: 7
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: Include.
# Include: spec/**/*, test/**/*
Rails/HttpPositionalArguments:
Exclude:
- 'test/unit/gemcutter/middleware/redirector_test.rb'
# Offense count: 1
# Configuration parameters: Include.
# Include: spec/**/*.rb, test/**/*.rb
Rails/I18nLocaleAssignment:
Exclude:
- 'test/test_helper.rb'
# Offense count: 6
Rails/I18nLocaleTexts:
Exclude:
- 'app/mailers/mailer.rb'
- 'app/mailers/owners_mailer.rb'
- 'app/models/ownership_call.rb'
- 'app/models/user.rb'
# Offense count: 5
Rails/OutputSafety:
Exclude:
- 'app/helpers/application_helper.rb'
- 'app/helpers/rubygems_helper.rb'
# Offense count: 7
# This cop supports safe auto-correction (--auto-correct).
Rails/RedundantPresenceValidationOnBelongsTo:
Exclude:
- 'app/models/api_key.rb'
- 'app/models/api_key_rubygem_scope.rb'
- 'app/models/deletion.rb'
- 'app/models/ownership_call.rb'
- 'app/models/ownership_request.rb'
- 'app/models/subscription.rb'
- 'app/models/version.rb'
# Offense count: 1
# This cop supports safe auto-correction (--auto-correct).
Rails/RelativeDateConstant:
Exclude:
- 'app/models/gem_typo.rb'
# Offense count: 43
# This cop supports safe auto-correction (--auto-correct).
Security/JSONLoad:
Exclude:
- 'config/initializers/yaml_renderer.rb'
- 'test/functional/api/v1/activities_controller_test.rb'
- 'test/functional/api/v1/api_keys_controller_test.rb'
- 'test/functional/api/v1/dependencies_controller_test.rb'
- 'test/functional/api/v1/downloads_controller_test.rb'
- 'test/functional/api/v1/rubygems_controller_test.rb'
- 'test/functional/api/v1/versions_controller_test.rb'
- 'test/functional/api/v1/web_hooks_controller_test.rb'
- 'test/functional/api/v2/versions_controller_test.rb'
- 'test/integration/api/v2/version_information_test.rb'
- 'test/models/dependency_test.rb'
- 'test/models/rubygem_test.rb'
- 'test/models/web_hook_test.rb'
# Offense count: 2
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedOctalStyle.
# SupportedOctalStyles: zero_with_o, zero_only
Style/NumericLiteralPrefix:
Exclude:
- 'test/models/pusher_test.rb'
# Offense count: 3
# This cop supports unsafe auto-correction (--auto-correct-all).
# Configuration parameters: EnforcedStyle, IgnoredMethods.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Exclude:
- 'app/helpers/searches_helper.rb'
- 'app/models/rubygem.rb'