Skip to content

Commit

Permalink
Update rubocop to 1.62.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaffen committed Mar 8, 2024
1 parent 92e044b commit 6bd9350
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 40 deletions.
58 changes: 22 additions & 36 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-01-31 10:36:31 UTC using RuboCop version 1.60.2.
# on 2024-03-08 10:11:27 UTC using RuboCop version 1.62.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: 13
# Offense count: 14
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: with_first_argument, with_fixed_indentation
Expand All @@ -32,13 +32,6 @@ Layout/EmptyLineAfterGuardClause:
- 'app/models/hiera_data/config.rb'
- 'app/models/hiera_data/yaml_file.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, DefLikeMacros, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
Layout/EmptyLineBetweenDefs:
Exclude:
- 'test/models/hiera_data/config_test.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
Expand Down Expand Up @@ -71,16 +64,6 @@ Layout/FirstArrayElementIndentation:
Exclude:
- 'test/models/hiera_data_test.rb'

# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
# SupportedHashRocketStyles: key, separator, table
# SupportedColonStyles: key, separator, table
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
Layout/HashAlignment:
Exclude:
- 'test/models/key_test.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Layout/HeredocIndentation:
Expand All @@ -96,7 +79,7 @@ Layout/IndentationConsistency:
- 'app/controllers/users_controller.rb'
- 'test/models/hiera_data/yaml_file_test.rb'

# Offense count: 4
# Offense count: 19
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Width, AllowedPatterns.
Layout/IndentationWidth:
Expand Down Expand Up @@ -125,7 +108,7 @@ Layout/SpaceAroundOperators:
- 'test/models/hiera_data/yaml_file_test.rb'
- 'test/models/hiera_data_test.rb'

# Offense count: 55
# Offense count: 43
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
# SupportedStyles: space, no_space, compact
Expand All @@ -136,7 +119,6 @@ Layout/SpaceInsideHashLiteralBraces:
- 'test/models/hiera_data/interpolation_test.rb'
- 'test/models/hiera_data/yaml_file_test.rb'
- 'test/models/hiera_data_test.rb'
- 'test/models/key_test.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Expand Down Expand Up @@ -171,13 +153,6 @@ Lint/ScriptPermission:
Exclude:
- 'test/fixtures/files/puppet/environments/eyaml/generate_eyaml_entries.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
Lint/UnusedBlockArgument:
Exclude:
- 'app/models/key.rb'

# Offense count: 8
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Expand All @@ -188,7 +163,7 @@ Metrics/AbcSize:
Metrics/CyclomaticComplexity:
Max: 8

# Offense count: 17
# Offense count: 18
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 17
Expand Down Expand Up @@ -238,6 +213,17 @@ Rails/ReversibleMigration:
Exclude:
- 'db/migrate/20210326144242_drop_puppet_tables.rb'

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowOnlyRestArgument, UseAnonymousForwarding, RedundantRestArgumentNames, RedundantKeywordRestArgumentNames, RedundantBlockArgumentNames.
# RedundantRestArgumentNames: args, arguments
# RedundantKeywordRestArgumentNames: kwargs, options, opts
# RedundantBlockArgumentNames: blk, block, proc
Style/ArgumentsForwarding:
Exclude:
- 'test/controllers/ldap_sessions_controller_test.rb'
- 'test/controllers/saml_sessions_controller_test.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
Expand All @@ -249,7 +235,7 @@ Style/BlockDelimiters:
Exclude:
- 'test/fixtures/files/puppet/environments/eyaml/generate_eyaml_entries.rb'

# Offense count: 12
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: nested, compact
Expand All @@ -265,7 +251,7 @@ Style/CommandLiteral:
Exclude:
- 'test/fixtures/files/puppet/environments/eyaml/generate_eyaml_entries.rb'

# Offense count: 68
# Offense count: 72
# Configuration parameters: AllowedConstants.
Style/Documentation:
Enabled: false
Expand All @@ -278,7 +264,7 @@ Style/Documentation:
Style/FormatStringToken:
EnforcedStyle: template

# Offense count: 142
# Offense count: 150
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, always_true, never
Expand Down Expand Up @@ -340,7 +326,7 @@ Style/PreferredHashMethods:
- 'app/models/hiera_data/yaml_file.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, AllowedCompactTypes.
# SupportedStyles: compact, exploded
Style/RaiseArgs:
Expand Down Expand Up @@ -377,7 +363,7 @@ Style/SafeNavigation:
Exclude:
- 'app/controllers/sessions_controller.rb'

# Offense count: 996
# Offense count: 1092
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Expand All @@ -397,7 +383,7 @@ Style/ZeroLengthPredicate:
Exclude:
- 'test/fixtures/files/puppet/environments/eyaml/generate_eyaml_entries.rb'

# Offense count: 30
# Offense count: 31
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
# URISchemes: http, https
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ group :test do
end

group :linter do
gem 'rubocop', '~> 1.60.2'
gem 'rubocop', '~> 1.62.0'
gem 'rubocop-capybara', '~> 2.20.0'
gem 'rubocop-performance', '~> 1.20.2'
gem 'rubocop-rails', '~> 2.24.0'
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -363,15 +363,15 @@ GEM
actionpack (>= 5.2.0)
rspec-core
rspec-support (3.13.1)
rubocop (1.60.2)
rubocop (1.62.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.1)
Expand Down Expand Up @@ -497,7 +497,7 @@ DEPENDENCIES
puppetdb-ruby
rails (~> 7.1.3)
rspec-openapi
rubocop (~> 1.60.2)
rubocop (~> 1.62.0)
rubocop-capybara (~> 2.20.0)
rubocop-performance (~> 1.20.2)
rubocop-rails (~> 2.24.0)
Expand Down

0 comments on commit 6bd9350

Please sign in to comment.