Skip to content

Commit

Permalink
Merge pull request #128 from chef/1.10
Browse files Browse the repository at this point in the history
Update to RuboCop 1.10
  • Loading branch information
tas50 authored Feb 15, 2021
2 parents 7505ba8 + f3517bd commit 4d7135b
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 17 deletions.
4 changes: 4 additions & 0 deletions config/disable_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Bundler/InsecureProtocolSource:
Enabled: false
Bundler/OrderedGems:
Enabled: false
Gemspec/DateAssignment:
Enabled: false
Gemspec/DuplicatedAssignment:
Enabled: false
Gemspec/OrderedDependencies:
Expand Down Expand Up @@ -631,6 +633,8 @@ Style/GuardClause:
Enabled: false
Style/HashAsLastArrayItem:
Enabled: false
Style/HashConversion:
Enabled: false
Style/HashEachMethods:
Enabled: false
Style/HashExcept:
Expand Down
54 changes: 38 additions & 16 deletions config/upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,13 @@ Bundler/OrderedGems:

#################### Gemspec ###############################

Gemspec/DateAssignment:
Description: 'Checks that `date =` is not used in gemspec file, it is set automatically when the gem is packaged.'
Enabled: pending
VersionAdded: '1.10'
Include:
- '**/*.gemspec'

Gemspec/DuplicatedAssignment:
Description: 'An attribute assignment method calls should be listed only once in a gemspec.'
Enabled: true
Expand Down Expand Up @@ -1446,23 +1453,31 @@ Lint/Debugger:
Description: 'Check for debugger calls.'
Enabled: true
VersionAdded: '0.14'
VersionChanged: '0.49'
DebuggerReceivers:
- binding
- Kernel
- Pry
VersionChanged: '1.10'
DebuggerReceivers: [] # deprecated
DebuggerMethods:
- debugger
- byebug
- remote_byebug
- pry
- remote_pry
- pry_remote
- console
- rescue
- save_and_open_page
- save_and_open_screenshot
- irb
# Groups are available so that a specific group can be disabled in
# a user's configuration, but are otherwise not significant.
Kernel:
- binding.irb
Byebug:
- byebug
- remote_byebug
- Kernel.byebug
- Kernel.remote_byebug
Capybara:
- save_and_open_page
- save_and_open_screenshot
Pry:
- binding.pry
- binding.remote_pry
- binding.pry_remote
- Pry.rescue
Rails:
- debugger
- Kernel.debugger
WebConsole:
- binding.console

Lint/DeprecatedClassMethods:
Description: 'Check for deprecated class method calls.'
Expand Down Expand Up @@ -3087,6 +3102,8 @@ Style/ConstantVisibility:
visibility declarations.
Enabled: false
VersionAdded: '0.66'
VersionChanged: '1.10'
IgnoreModules: false

# Checks that you have put a copyright in a comment before any code.
#
Expand Down Expand Up @@ -3425,6 +3442,11 @@ Style/HashAsLastArrayItem:
- braces
- no_braces

Style/HashConversion:
Description: 'Avoid Hash[] in favor of ary.to_h or literal hashes.'
Enabled: pending
VersionAdded: '1.10'

Style/HashEachMethods:
Description: 'Use Hash#each_key and Hash#each_value.'
StyleGuide: '#hash-each'
Expand Down
2 changes: 1 addition & 1 deletion lib/chefstyle/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
module Chefstyle
VERSION = "1.7.0"
RUBOCOP_VERSION = "1.9.1"
RUBOCOP_VERSION = "1.10.0"
end

0 comments on commit 4d7135b

Please sign in to comment.