Merge pull request #2582 from MikeMcQuaid/style-fix-rubocop-require
style: don't require rubocop until installed.
This commit is contained in:
commit
56413f6f6d
@ -19,8 +19,6 @@
|
|||||||
|
|
||||||
require "utils"
|
require "utils"
|
||||||
require "json"
|
require "json"
|
||||||
require "rubocop"
|
|
||||||
require_relative "../rubocops"
|
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
module_function
|
module_function
|
||||||
@ -66,7 +64,10 @@ module Homebrew
|
|||||||
|
|
||||||
def check_style_impl(files, output_type, options = {})
|
def check_style_impl(files, output_type, options = {})
|
||||||
fix = options[:fix]
|
fix = options[:fix]
|
||||||
|
|
||||||
Homebrew.install_gem_setup_path! "rubocop", HOMEBREW_RUBOCOP_VERSION
|
Homebrew.install_gem_setup_path! "rubocop", HOMEBREW_RUBOCOP_VERSION
|
||||||
|
require "rubocop"
|
||||||
|
require_relative "../rubocops"
|
||||||
|
|
||||||
args = %w[
|
args = %w[
|
||||||
--force-exclusion
|
--force-exclusion
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user