From 6c4042f5935da67365a10fa12483807b02f6bab4 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 22 Oct 2016 15:53:18 +0100 Subject: [PATCH] More Rubocop tweaks. - Don't enforce hash rockets on external commands. - Enabled accidentally disabled ParenthesesAsGroupedExpression. --- Library/.rubocop.yml | 2 ++ Library/Homebrew/.rubocop.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/.rubocop.yml b/Library/.rubocop.yml index d749adc353..ac10f92e55 100644 --- a/Library/.rubocop.yml +++ b/Library/.rubocop.yml @@ -85,6 +85,8 @@ Style/GuardClause: # depends_on a: :b looks weird in formulae. Style/HashSyntax: EnforcedStyle: hash_rockets + Exclude: + - '**/cmd/**/*' # disabled until it respects line length Style/IfUnlessModifier: diff --git a/Library/Homebrew/.rubocop.yml b/Library/Homebrew/.rubocop.yml index 3256743988..a43727371c 100644 --- a/Library/Homebrew/.rubocop.yml +++ b/Library/Homebrew/.rubocop.yml @@ -20,7 +20,7 @@ Lint/NestedMethodDefinition: # so many of these in formulae but none in here Lint/ParenthesesAsGroupedExpression: - Enabled: false + Enabled: true Metrics/ModuleLength: CountComments: false