style: don't require rubocop until installed.
This avoids an error when RuboCop installed installed yet. CC @GauthamGoli FYI.
This commit is contained in:
parent
a25cd9d8ba
commit
1c43070e69
@ -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