diff options
| author | Mike McQuaid | 2017-05-03 12:40:45 +0100 |
|---|---|---|
| committer | GitHub | 2017-05-03 12:40:45 +0100 |
| commit | 56413f6f6d0463abbac9f2b3fd48efacc06425e3 (patch) | |
| tree | c2954ab94414e913b3631262442c56ebd19a30b0 /Library | |
| parent | 790a113371ec6cdab38a29c18c835726054e4f78 (diff) | |
| parent | 1c43070e6930efe6df50377103368a1d39b3650b (diff) | |
| download | brew-56413f6f6d0463abbac9f2b3fd48efacc06425e3.tar.bz2 | |
Merge pull request #2582 from MikeMcQuaid/style-fix-rubocop-require
style: don't require rubocop until installed.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/style.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/style.rb b/Library/Homebrew/cmd/style.rb index 640ec8010..b805c9695 100644 --- a/Library/Homebrew/cmd/style.rb +++ b/Library/Homebrew/cmd/style.rb @@ -19,8 +19,6 @@ require "utils" require "json" -require "rubocop" -require_relative "../rubocops" module Homebrew module_function @@ -66,7 +64,10 @@ module Homebrew def check_style_impl(files, output_type, options = {}) fix = options[:fix] + Homebrew.install_gem_setup_path! "rubocop", HOMEBREW_RUBOCOP_VERSION + require "rubocop" + require_relative "../rubocops" args = %w[ --force-exclusion |
