brew style --fix

This commit is contained in:
Douglas Eichelberger 2023-03-15 18:21:41 -07:00
parent 827fc87cde
commit b8aa619f2f
2 changed files with 11 additions and 11 deletions

View File

@ -1070,10 +1070,10 @@ class GitHubGitDownloadStrategy < GitDownloadStrategy
super
match_data = %r{^https?://github\.com/(?<user>[^/]+)/(?<repo>[^/]+)\.git$}.match(@url)
if match_data
@user = match_data[:user]
@repo = match_data[:repo]
end
return unless match_data
@user = match_data[:user]
@repo = match_data[:repo]
end
def commit_outdated?(commit)

View File

@ -35,11 +35,11 @@ module Homebrew
end
def self.check_style_impl(files, output_type,
fix: false,
except_cops: nil, only_cops: nil,
display_cop_names: false,
reset_cache: false,
debug: false, verbose: false)
fix: false,
except_cops: nil, only_cops: nil,
display_cop_names: false,
reset_cache: false,
debug: false, verbose: false)
raise ArgumentError, "Invalid output type: #{output_type.inspect}" if [:print, :json].exclude?(output_type)
shell_files, ruby_files =
@ -79,8 +79,8 @@ module Homebrew
RUBOCOP = (HOMEBREW_LIBRARY_PATH/"utils/rubocop.rb").freeze
def self.run_rubocop(files, output_type,
fix: false, except_cops: nil, only_cops: nil, display_cop_names: false, reset_cache: false,
debug: false, verbose: false)
fix: false, except_cops: nil, only_cops: nil, display_cop_names: false, reset_cache: false,
debug: false, verbose: false)
Homebrew.install_bundler_gems!
require "warnings"