forked from rubygems/rubygems.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop_todo.yml
136 lines (120 loc) · 4.14 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
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2021-08-25 06:14:23 UTC using RuboCop version 0.93.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: 12
# Cop supports --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
# Cop supports --auto-correct.
# Configuration parameters: AllowComments.
Lint/UselessMethodDefinition:
Exclude:
- 'config/initializers/gem_version_monkeypatch.rb'
# Offense count: 174
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
# ExcludedMethods: refine
Metrics/BlockLength:
Max: 234
# 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.
# SupportedStyles: snake_case, normalcase, non_integer
Naming/VariableNumber:
Exclude:
- 'test/functional/api/v1/downloads_controller_test.rb'
- 'test/unit/gem_download_test.rb'
- 'test/unit/rubygem_searchable_test.rb'
# Offense count: 58
# Cop supports --auto-correct.
# Configuration parameters: Whitelist, AllowedMethods, AllowedReceivers.
# Whitelist: find_by_sql
# AllowedMethods: find_by_sql
# AllowedReceivers: Gem::Specification
Rails/DynamicFindBy:
Enabled: false
# Offense count: 8
# Cop supports --auto-correct.
# Configuration parameters: Include.
# Include: spec/**/*, test/**/*
Rails/HttpPositionalArguments:
Exclude:
- 'test/functional/api/v1/versions_controller_test.rb'
- 'test/unit/gemcutter/middleware/redirector_test.rb'
# Offense count: 5
Rails/OutputSafety:
Exclude:
- 'app/helpers/application_helper.rb'
- 'app/helpers/rubygems_helper.rb'
# Offense count: 43
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect.
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/unit/dependency_test.rb'
- 'test/unit/rubygem_test.rb'
- 'test/unit/web_hook_test.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedOctalStyle.
# SupportedOctalStyles: zero_with_o, zero_only
Style/NumericLiteralPrefix:
Exclude:
- 'test/unit/pusher_test.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IgnoredMethods.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Exclude:
- 'spec/**/*'
- 'app/helpers/searches_helper.rb'
- 'app/models/rubygem.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, explicit
Style/RescueStandardError:
Exclude:
- 'app/controllers/api/v1/rubygems_controller.rb'
- 'app/jobs/fastly_log_processor.rb'
- 'lib/tasks/linkset.rake'
Rails/HasManyOrHasOneDependent:
Exclude:
- 'app/models/rubygem.rb'
Rails/I18nLocaleAssignment:
Exclude:
- 'test/test_helper.rb'