aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib
diff options
context:
space:
mode:
authorMarkus Reiter2016-10-18 16:10:36 +0200
committerMarkus Reiter2016-10-18 16:39:08 +0200
commit3a22aff1b6f1cba97cffcbe64ed063f863a5b61d (patch)
tree889fe9f7c6e618d5a34b93c2370cde2daefac2e3 /Library/Homebrew/cask/lib
parent2da012d84d81dad61b7a5e071c9f827c822a6fed (diff)
downloadbrew-3a22aff1b6f1cba97cffcbe64ed063f863a5b61d.tar.bz2
Refactor `brew cask style` not to require `.rubocop.yml`.
Diffstat (limited to 'Library/Homebrew/cask/lib')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/style.rb10
1 files changed, 5 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..068f89d74 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/style.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/style.rb
@@ -54,17 +54,17 @@ module Hbc
end
def default_args
- ["--format", "simple", "--force-exclusion", "--config", rubocop_config]
+ [
+ "--require", "rubocop-cask",
+ "--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