brew style --fix
This commit is contained in:
parent
827fc87cde
commit
b8aa619f2f
@ -1070,10 +1070,10 @@ class GitHubGitDownloadStrategy < GitDownloadStrategy
|
|||||||
super
|
super
|
||||||
|
|
||||||
match_data = %r{^https?://github\.com/(?<user>[^/]+)/(?<repo>[^/]+)\.git$}.match(@url)
|
match_data = %r{^https?://github\.com/(?<user>[^/]+)/(?<repo>[^/]+)\.git$}.match(@url)
|
||||||
if match_data
|
return unless match_data
|
||||||
@user = match_data[:user]
|
|
||||||
@repo = match_data[:repo]
|
@user = match_data[:user]
|
||||||
end
|
@repo = match_data[:repo]
|
||||||
end
|
end
|
||||||
|
|
||||||
def commit_outdated?(commit)
|
def commit_outdated?(commit)
|
||||||
|
@ -35,11 +35,11 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.check_style_impl(files, output_type,
|
def self.check_style_impl(files, output_type,
|
||||||
fix: false,
|
fix: false,
|
||||||
except_cops: nil, only_cops: nil,
|
except_cops: nil, only_cops: nil,
|
||||||
display_cop_names: false,
|
display_cop_names: false,
|
||||||
reset_cache: false,
|
reset_cache: false,
|
||||||
debug: false, verbose: false)
|
debug: false, verbose: false)
|
||||||
raise ArgumentError, "Invalid output type: #{output_type.inspect}" if [:print, :json].exclude?(output_type)
|
raise ArgumentError, "Invalid output type: #{output_type.inspect}" if [:print, :json].exclude?(output_type)
|
||||||
|
|
||||||
shell_files, ruby_files =
|
shell_files, ruby_files =
|
||||||
@ -79,8 +79,8 @@ module Homebrew
|
|||||||
RUBOCOP = (HOMEBREW_LIBRARY_PATH/"utils/rubocop.rb").freeze
|
RUBOCOP = (HOMEBREW_LIBRARY_PATH/"utils/rubocop.rb").freeze
|
||||||
|
|
||||||
def self.run_rubocop(files, output_type,
|
def self.run_rubocop(files, output_type,
|
||||||
fix: false, except_cops: nil, only_cops: nil, display_cop_names: false, reset_cache: false,
|
fix: false, except_cops: nil, only_cops: nil, display_cop_names: false, reset_cache: false,
|
||||||
debug: false, verbose: false)
|
debug: false, verbose: false)
|
||||||
Homebrew.install_bundler_gems!
|
Homebrew.install_bundler_gems!
|
||||||
|
|
||||||
require "warnings"
|
require "warnings"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user