From 3e0828c29a6c0d68d61931c7f68e9555bf7e7ede Mon Sep 17 00:00:00 2001 From: "Bob W. Hogg" Date: Fri, 15 Jan 2016 23:25:47 -0800 Subject: [PATCH] Rubocop: upgrade to version 0.36.0 Stop using Style/TrailingComma as it is no longer recognized and start using Style/TrailingCommaInArguments and Style/TrailingCommaInLiteral instead. Closes Homebrew/homebrew#48144. Signed-off-by: Xu Cheng --- Library/.rubocop.yml | 4 +++- Library/Homebrew/cmd/style.rb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Library/.rubocop.yml b/Library/.rubocop.yml index 944f00a35e..7306009f3c 100644 --- a/Library/.rubocop.yml +++ b/Library/.rubocop.yml @@ -125,5 +125,7 @@ Style/DotPosition: EnforcedStyle: trailing # makes diffs nicer -Style/TrailingComma: +Style/TrailingCommaInArguments: + EnforcedStyleForMultiline: no_comma +Style/TrailingCommaInLiteral: EnforcedStyleForMultiline: comma diff --git a/Library/Homebrew/cmd/style.rb b/Library/Homebrew/cmd/style.rb index 38e3bcab89..dbfd9da1c8 100644 --- a/Library/Homebrew/cmd/style.rb +++ b/Library/Homebrew/cmd/style.rb @@ -8,7 +8,7 @@ module Homebrew ARGV.formulae.map(&:path) end - Homebrew.install_gem_setup_path! "rubocop", "0.35.1" + Homebrew.install_gem_setup_path! "rubocop", "0.36.0" args = [ "--format", "simple", "--force-exclusion", "--config",