Skip to content

Commit c99baf8

Browse files
authored
Merge pull request #162 from bastelfreak/rubocop2
pin rubocop version
2 parents b06d57b + c72140c commit c99baf8

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

.rubocop_todo.yml

Lines changed: 16 additions & 11 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-offense-counts --no-auto-gen-timestamp`
3-
# using RuboCop version 1.75.5.
3+
# using RuboCop version 1.79.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
@@ -29,6 +29,12 @@ Layout/EmptyLinesAroundMethodBody:
2929
- 'lib/puppet/transaction/event.rb'
3030
- 'lib/puppet/util/windows/file.rb'
3131

32+
# This cop supports safe autocorrection (--autocorrect).
33+
Layout/SpaceAroundKeyword:
34+
Exclude:
35+
- 'lib/puppet/provider/package/portage.rb'
36+
- 'lib/puppet/type/file.rb'
37+
3238
# This cop supports safe autocorrection (--autocorrect).
3339
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
3440
# SupportedStylesForExponentOperator: space, no_space
@@ -129,6 +135,12 @@ Lint/ToJSON:
129135
Lint/UnusedMethodArgument:
130136
Enabled: false
131137

138+
# This cop supports safe autocorrection (--autocorrect).
139+
# Configuration parameters: AutoCorrect.
140+
Lint/UselessAssignment:
141+
Exclude:
142+
- 'lib/puppet/application/face_base.rb'
143+
132144
# This cop supports safe autocorrection (--autocorrect).
133145
# Configuration parameters: AutoCorrect, CheckForMethodsWithNoSideEffects.
134146
Lint/Void:
@@ -252,8 +264,8 @@ Style/CaseEquality:
252264
# This cop supports unsafe autocorrection (--autocorrect-all).
253265
# Configuration parameters: EnforcedStyle, EnforcedStyleForClasses, EnforcedStyleForModules.
254266
# SupportedStyles: nested, compact
255-
# SupportedStylesForClasses: , nested, compact
256-
# SupportedStylesForModules: , nested, compact
267+
# SupportedStylesForClasses: ~, nested, compact
268+
# SupportedStylesForModules: ~, nested, compact
257269
Style/ClassAndModuleChildren:
258270
Enabled: false
259271

@@ -532,12 +544,6 @@ Style/NumericPredicate:
532544
Style/OptionalBooleanParameter:
533545
Enabled: false
534546

535-
# This cop supports safe autocorrection (--autocorrect).
536-
# Configuration parameters: PreferredDelimiters.
537-
Style/PercentLiteralDelimiters:
538-
Exclude:
539-
- 'lib/puppet/util.rb'
540-
541547
# This cop supports safe autocorrection (--autocorrect).
542548
# Configuration parameters: AllowedMethods.
543549
# AllowedMethods: nonzero?
@@ -556,7 +562,6 @@ Style/RedundantParentheses:
556562
- 'lib/puppet/application/agent.rb'
557563
- 'lib/puppet/application/face_base.rb'
558564
- 'lib/puppet/graph/rb_tree_map.rb'
559-
- 'lib/puppet/module_tool/contents_description.rb'
560565
- 'lib/puppet/module_tool/shared_behaviors.rb'
561566
- 'lib/puppet/pops/parser/lexer_support.rb'
562567
- 'lib/puppet/provider/package/aix.rb'
@@ -723,7 +728,7 @@ Style/ZeroLengthPredicate:
723728
Enabled: false
724729

725730
# This cop supports safe autocorrection (--autocorrect).
726-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
731+
# Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
727732
# URISchemes: http, https
728733
Layout/LineLength:
729734
Max: 582

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ group(:test) do
5353
gem 'webrick', '~> 1.7', require: false
5454
gem 'yard', require: false
5555

56-
gem 'rubocop', '~> 1.0', require: false, platforms: [:ruby]
56+
gem 'rubocop', '~> 1.79.0', require: false, platforms: [:ruby]
5757
gem 'rubocop-i18n', '~> 3.0', require: false, platforms: [:ruby]
5858
gem 'rubocop-performance', '~> 1.0', require: false, platforms: [:ruby]
5959
gem 'rubocop-rake', '~> 0.6', require: false, platforms: [:ruby]

0 commit comments

Comments
 (0)