forked from rubygems/rubygems.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop_todo.yml
163 lines (143 loc) · 4.93 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
162
163
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2016-12-03 09:18:45 +0000 using RuboCop version 0.46.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: 8
# Configuration parameters: Include.
# Include: **/Gemfile, **/gems.rb
Bundler/OrderedGems:
Exclude:
- 'Gemfile'
# Offense count: 2
# Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition:
Exclude:
- 'lib/capistrano/git-submodule-strategy.rb'
# Offense count: 2
Lint/DuplicateMethods:
Exclude:
- 'test/functional/api/v1/downloads_controller_test.rb'
- 'test/functional/api/v1/rubygems_controller_test.rb'
# Offense count: 89
# Configuration parameters: CountComments.
Metrics/BlockLength:
Max: 284
# Offense count: 43
# Cop supports --auto-correct.
# Configuration parameters: Whitelist.
# Whitelist: find_by_sql
Rails/DynamicFindBy:
Enabled: false
# Offense count: 119
# Cop supports --auto-correct.
# Configuration parameters: Include.
# Include: spec/**/*, test/**/*
Rails/HttpPositionalArguments:
Enabled: false
# Offense count: 4
Rails/OutputSafety:
Exclude:
- 'app/helpers/application_helper.rb'
- 'app/helpers/rubygems_helper.rb'
# Offense count: 38
# 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
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
Exclude:
- 'lib/capistrano/git-submodule-strategy.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: compact, expanded
Style/EmptyMethod:
Exclude:
- 'app/controllers/email_confirmations_controller.rb'
- 'app/controllers/rubygems_controller.rb'
# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
Layout/ExtraSpacing:
Exclude:
- 'script/s3_utils.rb'
- 'test/unit/version_test.rb'
# Offense count: 1
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts.
Naming/FileName:
Exclude:
- 'lib/capistrano/git-submodule-strategy.rb'
Naming/MemoizedInstanceVariableName:
Exclude:
- 'lib/rubygem_fs.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedOctalStyle, SupportedOctalStyles.
# SupportedOctalStyles: zero_with_o, zero_only
Style/NumericLiteralPrefix:
Exclude:
- 'test/unit/pusher_test.rb'
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Exclude:
- 'spec/**/*'
- 'app/helpers/searches_helper.rb'
- 'app/models/rubygem.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: ConvertCodeThatCanStartToReturnNil.
Style/SafeNavigation:
Exclude:
- 'app/jobs/fastly_log_processor.rb'
# Offense count: 2442
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Enabled: false
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowSafeAssignment.
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
Style/TernaryParentheses:
Exclude:
- 'config/initializers/clearance.rb'
# Offense count: 16
# Configuration parameters: EnforcedStyle, SupportedStyles.
# 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: 2
# 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'