Skip to content

Commit 3eaebd8

Browse files
committed
rubocop: autofix
1 parent c7150ea commit 3eaebd8

File tree

2 files changed

+27
-13
lines changed

2 files changed

+27
-13
lines changed

.rubocop.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,3 @@ inherit_gem:
66

77
Layout/LineLength:
88
Max: 225
9-
10-
AllCops:
11-
TargetRubyVersion: '3.2'

.rubocop_todo.yml

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config --no-auto-gen-timestamp`
3-
# using RuboCop version 1.79.2.
3+
# using RuboCop version 1.81.7.
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
@@ -115,13 +115,13 @@ Lint/SymbolConversion:
115115

116116
# Offense count: 25
117117
# This cop supports safe autocorrection (--autocorrect).
118-
# Configuration parameters: AutoCorrect, IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
118+
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
119119
Lint/UnusedBlockArgument:
120120
Enabled: false
121121

122122
# Offense count: 8
123123
# This cop supports safe autocorrection (--autocorrect).
124-
# Configuration parameters: AutoCorrect, AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
124+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
125125
# NotImplementedExceptions: NotImplementedError
126126
Lint/UnusedMethodArgument:
127127
Exclude:
@@ -132,14 +132,13 @@ Lint/UnusedMethodArgument:
132132

133133
# Offense count: 1
134134
# This cop supports safe autocorrection (--autocorrect).
135-
# Configuration parameters: AutoCorrect, ContextCreatingMethods, MethodCreatingMethods.
135+
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
136136
Lint/UselessAccessModifier:
137137
Exclude:
138138
- 'lib/packaging/sign.rb'
139139

140140
# Offense count: 9
141141
# This cop supports safe autocorrection (--autocorrect).
142-
# Configuration parameters: AutoCorrect.
143142
Lint/UselessAssignment:
144143
Exclude:
145144
- 'lib/packaging/repo.rb'
@@ -152,7 +151,7 @@ Lint/UselessAssignment:
152151

153152
# Offense count: 1
154153
# This cop supports safe autocorrection (--autocorrect).
155-
# Configuration parameters: AutoCorrect, CheckForMethodsWithNoSideEffects.
154+
# Configuration parameters: CheckForMethodsWithNoSideEffects.
156155
Lint/Void:
157156
Exclude:
158157
- 'lib/packaging/nuget.rb'
@@ -434,6 +433,16 @@ RSpec/LeakyConstantDeclaration:
434433
Exclude:
435434
- 'spec/lib/packaging/config_spec.rb'
436435

436+
# Offense count: 53
437+
RSpec/LeakyLocalVariable:
438+
Exclude:
439+
- 'spec/lib/packaging/artifactory_spec.rb'
440+
- 'spec/lib/packaging/config_spec.rb'
441+
- 'spec/lib/packaging/paths_spec.rb'
442+
- 'spec/lib/packaging/retrieve_spec.rb'
443+
- 'spec/lib/packaging/util/net_spec.rb'
444+
- 'spec/lib/packaging/util/ship_spec.rb'
445+
437446
# Offense count: 9
438447
# This cop supports safe autocorrection (--autocorrect).
439448
RSpec/MatchArray:
@@ -532,14 +541,13 @@ RSpec/ReturnFromStub:
532541

533542
# Offense count: 1
534543
# This cop supports safe autocorrection (--autocorrect).
535-
# Configuration parameters: AutoCorrect.
536544
RSpec/ScatteredLet:
537545
Exclude:
538546
- 'spec/lib/packaging/artifactory_spec.rb'
539547

540548
# Offense count: 2
541-
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
542-
# Include: **/*_spec.rb
549+
# Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata, InflectorPath, EnforcedInflector.
550+
# SupportedInflectors: default, active_support
543551
RSpec/SpecFilePathFormat:
544552
Exclude:
545553
- '**/spec/routing/**/*'
@@ -772,7 +780,7 @@ Style/EmptyCaseCondition:
772780

773781
# Offense count: 2
774782
# This cop supports safe autocorrection (--autocorrect).
775-
# Configuration parameters: AutoCorrect, EnforcedStyle.
783+
# Configuration parameters: EnforcedStyle.
776784
# SupportedStyles: compact, expanded
777785
Style/EmptyMethod:
778786
Exclude:
@@ -1150,6 +1158,15 @@ Style/RedundantRegexpArgument:
11501158
- 'lib/packaging/deb.rb'
11511159
- 'lib/packaging/util/version.rb'
11521160

1161+
# Offense count: 6
1162+
# This cop supports safe autocorrection (--autocorrect).
1163+
Style/RedundantRegexpEscape:
1164+
Exclude:
1165+
- 'lib/packaging/nuget.rb'
1166+
- 'lib/packaging/paths.rb'
1167+
- 'lib/packaging/util/version.rb'
1168+
- 'tasks/deb.rake'
1169+
11531170
# Offense count: 70
11541171
# This cop supports safe autocorrection (--autocorrect).
11551172
# Configuration parameters: AllowMultipleReturnValues.

0 commit comments

Comments
 (0)