diff options
| author | Mike McQuaid | 2017-05-03 12:09:18 +0100 | 
|---|---|---|
| committer | Mike McQuaid | 2017-05-03 12:09:18 +0100 | 
| commit | 1c43070e6930efe6df50377103368a1d39b3650b (patch) | |
| tree | 408a49d78024dd82432669d093c8a062498bd0a4 /Library/Homebrew/cmd/style.rb | |
| parent | a25cd9d8baf3e40d0dad155c27565e602ebb5a64 (diff) | |
| download | brew-1c43070e6930efe6df50377103368a1d39b3650b.tar.bz2 | |
style: don't require rubocop until installed.
This avoids an error when RuboCop installed installed yet.
CC @GauthamGoli FYI.
Diffstat (limited to 'Library/Homebrew/cmd/style.rb')
| -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 | 
