diff options
| author | Mike McQuaid | 2015-08-02 14:56:01 +0100 |
|---|---|---|
| committer | Xu Cheng | 2015-08-03 18:47:23 +0800 |
| commit | e4ef7f8cb744231800b2a6a166ba04d9e374c173 (patch) | |
| tree | 77ff541b7368362a89d9d637c29be86165d41e6a /Library | |
| parent | b22d899d3aa3d72c06c946001e1370ef23ca78c8 (diff) | |
| download | brew-e4ef7f8cb744231800b2a6a166ba04d9e374c173.tar.bz2 | |
Don't try to Rubocop vendored files.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/.rubocop.yml | 5 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/style.rb | 2 |
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" ] |
