From e4ef7f8cb744231800b2a6a166ba04d9e374c173 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 2 Aug 2015 14:56:01 +0100 Subject: Don't try to Rubocop vendored files. --- Library/.rubocop.yml | 5 +++++ Library/Homebrew/cmd/style.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'Library') 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" ] -- cgit v1.2.3