aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cask/lib')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/style.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/style.rb b/Library/Homebrew/cask/lib/hbc/cli/style.rb
index c6a08671f..0dd4bc474 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/style.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/style.rb
@@ -54,17 +54,18 @@ module Hbc
end
def default_args
- ["--format", "simple", "--force-exclusion", "--config", rubocop_config]
+ [
+ "--require", "rubocop-cask",
+ "--config", "/dev/null", # always use `rubocop-cask` default config
+ "--format", "simple",
+ "--force-exclusion"
+ ]
end
def autocorrect_args
default_args + ["--auto-correct"]
end
- def rubocop_config
- Hbc.default_tap.cask_dir.join(".rubocop.yml")
- end
-
def fix?
args.any? { |arg| arg =~ %r{--(fix|(auto-?)?correct)} }
end