-
-
Notifications
You must be signed in to change notification settings - Fork 924
/
.rubocop_todo.yml
154 lines (136 loc) · 5.06 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
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-07-03 00:52:11 UTC using RuboCop version 1.60.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: 30
# This cop supports safe autocorrection (--autocorrect).
# 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 autocorrection (--autocorrect-all).
Lint/UselessMethodDefinition:
Exclude:
- 'config/initializers/gem_version_monkeypatch.rb'
# Offense count: 16
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
# AllowedMethods: refine
Metrics/BlockLength:
Max: 61
# Offense count: 1
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
Metrics/CyclomaticComplexity:
Exclude:
- 'app/models/concerns/rubygem_searchable.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'lib/rubygem_fs.rb'
# Offense count: 16
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, normalcase, non_integer
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
Naming/VariableNumber:
Exclude:
- 'test/functional/api/v1/downloads_controller_test.rb'
- 'test/models/concerns/rubygem_searchable_test.rb'
- 'test/models/gem_download_test.rb'
# Offense count: 1
# Configuration parameters: Database, Include.
# SupportedDatabases: mysql, postgresql
# Include: db/**/*.rb
Rails/BulkChangeTable:
Exclude:
- 'db/migrate/20240522185716_create_good_job_process_lock_ids.rb'
# Offense count: 83
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Whitelist, AllowedMethods, AllowedReceivers.
# Whitelist: find_by_sql, find_by_token_for
# AllowedMethods: find_by_sql, find_by_token_for
# AllowedReceivers: Gem::Specification, page
Rails/DynamicFindBy:
Enabled: false
# Offense count: 6
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/HasManyOrHasOneDependent:
Exclude:
- 'app/models/rubygem.rb'
# Offense count: 1
# Configuration parameters: Include.
# Include: spec/**/*.rb, test/**/*.rb
Rails/I18nLocaleAssignment:
Exclude:
- 'test/test_helper.rb'
# Offense count: 7
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: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/RedundantPresenceValidationOnBelongsTo:
Exclude:
- '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 unsafe autocorrection (--autocorrect-all).
Rails/RelativeDateConstant:
Exclude:
- 'app/models/gem_typo.rb'
# Offense count: 39
# This cop supports unsafe autocorrection (--autocorrect-all).
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 autocorrection (--autocorrect).
# Configuration parameters: EnforcedOctalStyle.
# SupportedOctalStyles: zero_with_o, zero_only
Style/NumericLiteralPrefix:
Exclude:
- 'test/models/pusher_test.rb'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Exclude:
- 'app/helpers/searches_helper.rb'
- 'app/models/rubygem.rb'