Skip to content

Commit

Permalink
Vendor rubocop-1.15.0 upstream configuration.
Browse files Browse the repository at this point in the history
Obvious fix; these changes are the result of automation not creative thinking.
  • Loading branch information
tas50 committed May 27, 2021
1 parent 5b4dcca commit 082bbaf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
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

0 comments on commit 082bbaf

Please sign in to comment.