From aa8003103e8b6ef691ff8a0b57433a7a372aa224 Mon Sep 17 00:00:00 2001 From: commitay Date: Mon, 29 Jan 2018 07:45:30 +1000 Subject: [PATCH] cask style: fix `--fix` --- Library/Homebrew/cask/lib/hbc/cli/style.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/cask/lib/hbc/cli/style.rb b/Library/Homebrew/cask/lib/hbc/cli/style.rb index bf7ffb62db..261bed50b9 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/style.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/style.rb @@ -36,18 +36,21 @@ module Hbc end def rubocop_args - fix? ? autocorrect_args : default_args + fix? ? autocorrect_args : normal_args end def default_args [ "--require", "rubocop-cask", "--force-default-config", - "--format", "simple", - "--parallel" + "--format", "simple" ] end + def normal_args + default_args + ["--parallel"] + end + def autocorrect_args default_args + ["--auto-correct"] end