From c0403314682b1bf85535855ef54d66487a38b794 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 14 Mar 2020 19:46:23 +0000 Subject: [PATCH] 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. --- Library/.rubocop.yml | 4 ---- Library/Homebrew/.rubocop.yml | 4 ---- 2 files changed, 8 deletions(-) diff --git a/Library/.rubocop.yml b/Library/.rubocop.yml index 63c34b2e15..17f6ae6e3c 100644 --- a/Library/.rubocop.yml +++ b/Library/.rubocop.yml @@ -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 diff --git a/Library/Homebrew/.rubocop.yml b/Library/Homebrew/.rubocop.yml index 36836fb781..223f857a05 100644 --- a/Library/Homebrew/.rubocop.yml +++ b/Library/Homebrew/.rubocop.yml @@ -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