aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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"
]