audit: modified problem statement to match

This commit is contained in:
Lionell 2020-06-24 20:43:33 +08:00
parent ac818ec556
commit 4832a5aa05

View File

@ -123,7 +123,7 @@ module Homebrew
git: git, git: git,
only: only, only: only,
except: args.except, except: args.except,
spdx_data: spdx_data, spdx_data: spdx_data,
} }
options[:style_offenses] = style_results.file_offenses(f.path) if style_results options[:style_offenses] = style_results.file_offenses(f.path) if style_results
options[:display_cop_names] = args.display_cop_names? options[:display_cop_names] = args.display_cop_names?
@ -358,9 +358,9 @@ module Homebrew
return if github_license && (github_license == formula.license) return if github_license && (github_license == formula.license)
problem "License mismatch - GitHub license is: #{github_license}, "\ problem "License mismatch - GitHub license is: #{github_license}, "\
"but formula license states: #{formula.license}." "but Formulae license states: #{formula.license}."
else else
problem "#{formula.license} is not a SPDX license." problem "#{formula.license} is not a standard SPDX license."
end end
elsif @new_formula elsif @new_formula
problem "No license specified for package." problem "No license specified for package."