Skip to content

Commit

Permalink
Upgrade RuboCop to support Ruby 2.5 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrictson committed Jan 12, 2025
1 parent 574f64e commit 38b0960
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ Style/ClassAndModuleChildren:
Enabled: false
Style/DoubleNegation:
Enabled: false
Style/FileName:
Naming/FileName:
Exclude:
- "Dangerfile"
Style/IndentHeredoc:
Layout/IndentHeredoc:
Enabled: false
Style/SpaceAroundEqualsInParameterDefault:
Layout/SpaceAroundEqualsInParameterDefault:
EnforcedStyle: no_space
Style/StringLiterals:
EnforcedStyle: double_quotes
Expand All @@ -47,7 +47,7 @@ Metrics/CyclomaticComplexity:
Enabled: false
Metrics/MethodLength:
Enabled: false
Style/PredicateName:
Naming/PredicateName:
Enabled: false
Metrics/LineLength:
Enabled: false
Expand All @@ -59,5 +59,5 @@ Metrics/ClassLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Style/AccessorMethodName:
Naming/AccessorMethodName:
Enabled: false
6 changes: 3 additions & 3 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ Style/MethodDefParentheses:
# Offense count: 3
# Configuration parameters: SupportedStyles.
# SupportedStyles: snake_case, camelCase
Style/MethodName:
Naming/MethodName:
EnforcedStyle: snake_case
Exclude:
- 'test/unit/test_color.rb'
Expand All @@ -460,7 +460,7 @@ Style/NumericPredicate:
- 'lib/sshkit/command.rb'

# Offense count: 1
Style/OpMethod:
Naming/BinaryOperatorParameterName:
Exclude:
- 'lib/sshkit/host.rb'

Expand Down Expand Up @@ -611,7 +611,7 @@ Style/UnneededPercentQ:
# Offense count: 1
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: snake_case, normalcase, non_integer
Style/VariableNumber:
Naming/VariableNumber:
Exclude:
- 'test/unit/backends/test_connection_pool.rb'

Expand Down
2 changes: 1 addition & 1 deletion sshkit.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Gem::Specification.new do |gem|
gem.add_development_dependency('minitest-reporters')
gem.add_development_dependency('rainbow', '~> 2.2.2')
gem.add_development_dependency('rake')
gem.add_development_dependency('rubocop', "~> 0.49.1")
gem.add_development_dependency('rubocop', "~> 0.52.0")
gem.add_development_dependency('mocha')

gem.add_development_dependency('bcrypt_pbkdf')
Expand Down

0 comments on commit 38b0960

Please sign in to comment.