Skip to content

Commit 75665fa

Browse files
committed
Regenerate .rubocop_todo.yml to let rubocop pass
1 parent a9517ac commit 75665fa

File tree

2 files changed

+113
-32
lines changed

2 files changed

+113
-32
lines changed

.rubocop_todo.yml

Lines changed: 112 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,176 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2017-11-25 19:54:28 -0500 using RuboCop version 0.50.0.
3+
# on 2022-05-30 13:48:55 UTC using RuboCop version 1.30.0.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

99
# Offense count: 3
10-
# Cop supports --auto-correct.
11-
# Configuration parameters: EnforcedStyle, SupportedStyles.
12-
# SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
10+
# This cop supports safe autocorrection (--autocorrect).
1311
Layout/HeredocIndentation:
1412
Exclude:
1513
- 'support/ruby_enc_to_mysql.rb'
1614
- 'tasks/compile.rake'
1715

1816
# Offense count: 2
17+
# Configuration parameters: AllowedMethods.
18+
# AllowedMethods: enums
19+
Lint/ConstantDefinitionInBlock:
20+
Exclude:
21+
- 'spec/mysql2/client_spec.rb'
22+
- 'tasks/rspec.rake'
23+
24+
# Offense count: 1
25+
Lint/MissingSuper:
26+
Exclude:
27+
- 'lib/mysql2/em.rb'
28+
29+
# Offense count: 2
30+
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
1931
Metrics/AbcSize:
20-
Max: 91
32+
Max: 94
2133

22-
# Offense count: 31
23-
# Configuration parameters: CountComments, ExcludedMethods.
34+
# Offense count: 34
35+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
36+
# IgnoredMethods: refine
2437
Metrics/BlockLength:
25-
Max: 860
38+
Max: 592
2639

2740
# Offense count: 1
2841
# Configuration parameters: CountBlocks.
2942
Metrics/BlockNesting:
3043
Max: 5
3144

3245
# Offense count: 1
33-
# Configuration parameters: CountComments.
46+
# Configuration parameters: CountComments, CountAsOne.
3447
Metrics/ClassLength:
3548
Max: 135
3649

3750
# Offense count: 3
51+
# Configuration parameters: IgnoredMethods.
3852
Metrics/CyclomaticComplexity:
39-
Max: 32
40-
41-
# Offense count: 313
42-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
43-
# URISchemes: http, https
44-
Layout/LineLength:
45-
Max: 232
53+
Max: 34
4654

4755
# Offense count: 6
48-
# Configuration parameters: CountComments.
56+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
4957
Metrics/MethodLength:
5058
Max: 57
5159

5260
# Offense count: 2
61+
# Configuration parameters: IgnoredMethods.
5362
Metrics/PerceivedComplexity:
54-
Max: 29
63+
Max: 32
5564

56-
# Offense count: 3
57-
# Configuration parameters: Blacklist.
58-
# Blacklist: END, (?-mix:EO[A-Z]{1})
65+
# Offense count: 2
66+
# Configuration parameters: ForbiddenDelimiters.
67+
# ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
5968
Naming/HeredocDelimiterNaming:
6069
Exclude:
6170
- 'tasks/compile.rake'
6271

63-
# Offense count: 10
72+
# Offense count: 1
73+
# This cop supports unsafe autocorrection (--autocorrect-all).
74+
Style/CaseLikeIf:
75+
Exclude:
76+
- 'ext/mysql2/extconf.rb'
77+
78+
# Offense count: 8
79+
# Configuration parameters: AllowedConstants.
6480
Style/Documentation:
6581
Exclude:
6682
- 'spec/**/*'
6783
- 'test/**/*'
6884
- 'benchmark/active_record.rb'
6985
- 'benchmark/allocations.rb'
70-
- 'benchmark/query_with_mysql_casting.rb'
7186
- 'lib/mysql2.rb'
7287
- 'lib/mysql2/client.rb'
7388
- 'lib/mysql2/em.rb'
7489
- 'lib/mysql2/error.rb'
75-
- 'lib/mysql2/result.rb'
7690
- 'lib/mysql2/statement.rb'
7791

78-
# Offense count: 14
92+
# Offense count: 6
93+
# This cop supports safe autocorrection (--autocorrect).
94+
Style/ExpandPathArguments:
95+
Exclude:
96+
- 'ext/mysql2/extconf.rb'
97+
- 'mysql2.gemspec'
98+
- 'spec/mysql2/client_spec.rb'
99+
- 'support/mysql_enc_to_ruby.rb'
100+
- 'tasks/compile.rake'
101+
102+
# Offense count: 15
79103
# Configuration parameters: AllowedVariables.
80104
Style/GlobalVars:
81105
Exclude:
82106
- 'ext/mysql2/extconf.rb'
83107

84-
# Offense count: 17
85-
# Cop supports --auto-correct.
86-
# Configuration parameters: Strict.
108+
# Offense count: 8
109+
# This cop supports safe autocorrection (--autocorrect).
110+
Style/IfUnlessModifier:
111+
Exclude:
112+
- 'lib/mysql2.rb'
113+
- 'lib/mysql2/client.rb'
114+
- 'spec/mysql2/client_spec.rb'
115+
116+
# Offense count: 1
117+
# This cop supports safe autocorrection (--autocorrect).
118+
# Configuration parameters: AllowMethodComparison.
119+
Style/MultipleComparison:
120+
Exclude:
121+
- 'lib/mysql2/client.rb'
122+
123+
# Offense count: 18
124+
# This cop supports safe autocorrection (--autocorrect).
125+
# Configuration parameters: Strict, AllowedNumbers.
87126
Style/NumericLiterals:
88127
MinDigits: 20
89128

90-
# Offense count: 726
91-
# Cop supports --auto-correct.
92-
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
129+
# Offense count: 4
130+
# This cop supports safe autocorrection (--autocorrect).
131+
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
132+
# AllowedMethods: present?, blank?, presence, try, try!
133+
Style/SafeNavigation:
134+
Exclude:
135+
- 'benchmark/setup_db.rb'
136+
- 'ext/mysql2/extconf.rb'
137+
- 'lib/mysql2/em.rb'
138+
139+
# Offense count: 14
140+
# This cop supports unsafe autocorrection (--autocorrect-all).
141+
# Configuration parameters: Mode.
142+
Style/StringConcatenation:
143+
Exclude:
144+
- 'benchmark/active_record.rb'
145+
- 'benchmark/active_record_threaded.rb'
146+
- 'benchmark/allocations.rb'
147+
- 'benchmark/escape.rb'
148+
- 'benchmark/query_with_mysql_casting.rb'
149+
- 'benchmark/query_without_mysql_casting.rb'
150+
- 'benchmark/sequel.rb'
151+
- 'benchmark/setup_db.rb'
152+
- 'ext/mysql2/extconf.rb'
153+
- 'lib/mysql2/client.rb'
154+
- 'tasks/compile.rake'
155+
156+
# Offense count: 782
157+
# This cop supports safe autocorrection (--autocorrect).
158+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
93159
# SupportedStyles: single_quotes, double_quotes
94160
Style/StringLiterals:
95161
Enabled: false
162+
163+
# Offense count: 1
164+
# This cop supports safe autocorrection (--autocorrect).
165+
# Configuration parameters: WordRegex.
166+
# SupportedStyles: percent, brackets
167+
Style/WordArray:
168+
EnforcedStyle: percent
169+
MinSize: 4
170+
171+
# Offense count: 32
172+
# This cop supports safe autocorrection (--autocorrect).
173+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
174+
# URISchemes: http, https
175+
Layout/LineLength:
176+
Max: 232

ext/mysql2/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def add_ssl_defines(header)
181181
end
182182
end
183183

184-
unless disabled_sanitizers.empty?
184+
unless disabled_sanitizers.empty? # rubocop:disable Style/IfUnlessModifier
185185
abort "-----\nCould not enable requested sanitizers: #{disabled_sanitizers.join(',')}\n-----"
186186
end
187187

0 commit comments

Comments
 (0)