Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vendor rubocop-1.11.0 upstream configuration. #129

Merged
merged 1 commit into from
Mar 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/disable_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,8 @@ Style/TrivialAccessors:
Enabled: false
Style/UnlessElse:
Enabled: false
Style/UnlessLogicalOperators:
Enabled: false
Style/UnpackFirst:
Enabled: false
Style/VariableInterpolation:
Expand Down
13 changes: 13 additions & 0 deletions config/upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3446,6 +3446,8 @@ Style/HashConversion:
Description: 'Avoid Hash[] in favor of ary.to_h or literal hashes.'
Enabled: pending
VersionAdded: '1.10'
VersionChanged: '1.11'
AllowSplatArgument: true

Style/HashEachMethods:
Description: 'Use Hash#each_key and Hash#each_value.'
Expand Down Expand Up @@ -4586,6 +4588,7 @@ Style/SymbolProc:
Safe: false
VersionAdded: '0.26'
VersionChanged: '1.5'
AllowMethodsWithArguments: false
# A list of method names to be ignored by the check.
# The names should be fairly unique, otherwise you'll end up ignoring lots of code.
IgnoredMethods:
Expand Down Expand Up @@ -4738,6 +4741,16 @@ Style/UnlessElse:
Enabled: true
VersionAdded: '0.9'

Style/UnlessLogicalOperators:
Description: >-
Checks for use of logical operators in an unless condition.
Enabled: false
VersionAdded: '1.11'
EnforcedStyle: forbid_mixed_logical_operators
SupportedStyles:
- forbid_mixed_logical_operators
- forbid_logical_operators

Style/UnpackFirst:
Description: >-
Checks for accessing the first element of `String#unpack`
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.1"
RUBOCOP_VERSION = "1.10.0"
RUBOCOP_VERSION = "1.11.0"
end