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 to 1.12 #132

Merged
merged 2 commits into from
Mar 24, 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 @@ -851,6 +851,8 @@ Style/StabbyLambdaParentheses:
Enabled: false
Style/StderrPuts:
Enabled: false
Style/StringChars:
Enabled: false
Style/StringConcatenation:
Enabled: false
Style/StringHashKeys:
Expand Down
17 changes: 16 additions & 1 deletion config/upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2055,13 +2055,18 @@ Lint/SuppressedException:
StyleGuide: '#dont-hide-exceptions'
Enabled: true
AllowComments: true
AllowNil: true
VersionAdded: '0.9'
VersionChanged: '0.81'
VersionChanged: '1.12'

Lint/SymbolConversion:
Description: 'Checks for unnecessary symbol conversions.'
Enabled: pending
VersionAdded: '1.9'
EnforcedStyle: strict
SupportedStyles:
- strict
- consistent

Lint/Syntax:
Description: 'Checks for syntax errors.'
Expand Down Expand Up @@ -2489,6 +2494,7 @@ Naming/MemoizedInstanceVariableName:
- disallowed
- required
- optional
Safe: false

Naming/MethodName:
Description: 'Use the configured style when naming methods.'
Expand Down Expand Up @@ -3174,6 +3180,7 @@ Style/Documentation:
Description: 'Document classes and non-namespace modules.'
Enabled: true
VersionAdded: '0.9'
AllowedConstants: []
Exclude:
- 'spec/**/*'
- 'test/**/*'
Expand Down Expand Up @@ -3672,6 +3679,7 @@ Style/MethodCallWithArgsParentheses:
AllowParenthesesInMultilineCall: false
AllowParenthesesInChaining: false
AllowParenthesesInCamelCaseMethod: false
AllowParenthesesInStringInterpolation: false
EnforcedStyle: require_parentheses
SupportedStyles:
- require_parentheses
Expand Down Expand Up @@ -4491,6 +4499,13 @@ Style/StderrPuts:
Enabled: true
VersionAdded: '0.51'

Style/StringChars:
Description: 'Checks for uses of `String#split` with empty string or regexp literal argument.'
StyleGuide: '#string-chars'
Enabled: pending
Safe: false
VersionAdded: '1.12'

Style/StringConcatenation:
Description: 'Checks for places where string concatenation can be replaced with string interpolation.'
StyleGuide: '#string-interpolation'
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.3"
RUBOCOP_VERSION = "1.11.0"
RUBOCOP_VERSION = "1.12.0"
end