From bf856117ba9776b3227106ace27493fe3fd9d16f Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sun, 8 Jul 2018 20:08:51 +0200 Subject: [PATCH] Allow unused keyword arguments. --- Library/Homebrew/.rubocop.yml | 3 +++ Library/Homebrew/style.rb | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/Library/Homebrew/.rubocop.yml b/Library/Homebrew/.rubocop.yml index 9fe6333094..43bf51dba0 100644 --- a/Library/Homebrew/.rubocop.yml +++ b/Library/Homebrew/.rubocop.yml @@ -31,6 +31,9 @@ Lint/NestedMethodDefinition: Lint/ParenthesesAsGroupedExpression: Enabled: true +Lint/UnusedMethodArgument: + AllowUnusedKeywordArguments: true + # TODO: try to bring down all metrics maximums Metrics/AbcSize: Max: 250 diff --git a/Library/Homebrew/style.rb b/Library/Homebrew/style.rb index c17239b3f0..7d8ca2b7b5 100644 --- a/Library/Homebrew/style.rb +++ b/Library/Homebrew/style.rb @@ -30,6 +30,10 @@ module Homebrew args << "--parallel" end + if ARGV.verbose? + args += ["--extra-details", "--display-cop-names"] + end + if ARGV.include?("--rspec") Homebrew.install_gem! "rubocop-rspec" args += %w[--require rubocop-rspec]