diff options
| author | Markus Reiter | 2018-01-29 02:22:33 +0100 |
|---|---|---|
| committer | GitHub | 2018-01-29 02:22:33 +0100 |
| commit | 91f980208e09e9bf035b60868492df8775411f87 (patch) | |
| tree | a32c854ca3d0d6bd35293f4ba7b8799aa15923f2 | |
| parent | 9f4b4a169975a5bb9272974963d4d37d873affc6 (diff) | |
| parent | aa8003103e8b6ef691ff8a0b57433a7a372aa224 (diff) | |
| download | brew-91f980208e09e9bf035b60868492df8775411f87.tar.bz2 | |
Merge pull request #3745 from commitay/style
cask style: fix `--fix`
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/style.rb | 9 |
1 files 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 bf7ffb62d..261bed50b 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 |
