rubocop: enable Style/TrailingBodyOnMethodDefinition.

This is default, more consistent with Ruby style and autocorrectable.

I have updated the usage in Homebrew/core to be consistent.
This commit is contained in:
Mike McQuaid 2020-03-14 19:46:23 +00:00
parent a401c1cd35
commit c040331468
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
2 changed files with 0 additions and 8 deletions

View File

@ -111,10 +111,6 @@ Style/StringLiteralsInInterpolation:
Style/TernaryParentheses:
EnforcedStyle: require_parentheses_when_complex
# messes with existing plist/caveats style
Style/TrailingBodyOnMethodDefinition:
Enabled: false
# a bit confusing to non-Rubyists but useful for longer arrays
Style/WordArray:
MinSize: 4

View File

@ -139,7 +139,3 @@ Style/MutableConstant:
# LineLength is low enough here to re-enable it.
Style/IfUnlessModifier:
Enabled: true
# so many of these in formulae but none in here
Style/TrailingBodyOnMethodDefinition:
Enabled: true