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

Update RuboCop engine to 1.15 #138

Merged
merged 2 commits into from
May 27, 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 @@ -883,6 +883,8 @@ Style/SymbolProc:
Enabled: false
Style/TernaryParentheses:
Enabled: false
Style/TopLevelMethodDefinition:
Enabled: false
Style/TrailingBodyOnClass:
Enabled: false
Style/TrailingBodyOnMethodDefinition:
Expand Down
14 changes: 11 additions & 3 deletions config/upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,7 @@ Lint/EmptyBlock:
Description: 'This cop checks for blocks without a body.'
Enabled: pending
VersionAdded: '1.1'
VersionChanged: '1.3'
VersionChanged: '1.15'
AllowComments: true
AllowEmptyLambdas: true

Expand Down Expand Up @@ -3480,6 +3480,7 @@ Style/HashAsLastArrayItem:

Style/HashConversion:
Description: 'Avoid Hash[] in favor of ary.to_h or literal hashes.'
StyleGuide: '#avoid-hash-constructor'
Enabled: pending
VersionAdded: '1.10'
VersionChanged: '1.11'
Expand Down Expand Up @@ -3998,6 +3999,7 @@ Style/NilLambda:
Description: 'Prefer `-> {}` to `-> { nil }`.'
Enabled: pending
VersionAdded: '1.3'
VersionChanged: '1.15'

Style/NonNilCheck:
Description: 'Checks for redundant nil checks.'
Expand Down Expand Up @@ -4651,6 +4653,12 @@ Style/TernaryParentheses:
- require_parentheses_when_complex
AllowSafeAssignment: true

Style/TopLevelMethodDefinition:
Description: 'This cop looks for top-level method definitions.'
StyleGuide: '#top-level-methods'
Enabled: false
VersionAdded: '1.15'

Style/TrailingBodyOnClass:
Description: 'Class body goes below class statement.'
Enabled: true
Expand Down Expand Up @@ -4737,7 +4745,7 @@ Style/TrivialAccessors:
StyleGuide: '#attr_family'
Enabled: true
VersionAdded: '0.9'
VersionChanged: '0.77'
VersionChanged: '1.15'
# When set to `false` the cop will suggest the use of accessor methods
# in situations like:
#
Expand All @@ -4756,7 +4764,7 @@ Style/TrivialAccessors:
# on_exception :restart
#
# Commonly used in DSLs
AllowDSLWriters: false
AllowDSLWriters: true
IgnoreClassMethods: false
AllowedMethods:
- to_ary
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 = "2.0.3"
RUBOCOP_VERSION = "1.14.0"
RUBOCOP_VERSION = "1.15.0"
end