aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2015-08-02 14:56:01 +0100
committerXu Cheng2015-08-03 18:47:23 +0800
commite4ef7f8cb744231800b2a6a166ba04d9e374c173 (patch)
tree77ff541b7368362a89d9d637c29be86165d41e6a /Library
parentb22d899d3aa3d72c06c946001e1370ef23ca78c8 (diff)
downloadbrew-e4ef7f8cb744231800b2a6a166ba04d9e374c173.tar.bz2
Don't try to Rubocop vendored files.
Diffstat (limited to 'Library')
-rw-r--r--Library/.rubocop.yml5
-rw-r--r--Library/Homebrew/cmd/style.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/Library/.rubocop.yml b/Library/.rubocop.yml
index 89dcaa463..d6d0e5d50 100644
--- a/Library/.rubocop.yml
+++ b/Library/.rubocop.yml
@@ -1,3 +1,8 @@
+AllCops:
+ Exclude:
+ - 'Homebrew/vendor/**/*'
+ - 'Homebrew/test/vendor/**/*'
+
# 1.8-style hash keys
Style/HashSyntax:
EnforcedStyle: hash_rockets
diff --git a/Library/Homebrew/cmd/style.rb b/Library/Homebrew/cmd/style.rb
index b39a2d887..3f28207ea 100644
--- a/Library/Homebrew/cmd/style.rb
+++ b/Library/Homebrew/cmd/style.rb
@@ -9,7 +9,7 @@ module Homebrew
Homebrew.install_gem_setup_path! "rubocop", "0.32.1"
args = [
- "--format", "simple", "--config",
+ "--format", "simple", "--force-exclusion", "--config",
"#{HOMEBREW_LIBRARY}/.rubocop.yml"
]