audit: merge the template comments checks
Closes Homebrew/homebrew#45263. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
parent
774a508d1a
commit
e7ef3e36e2
@ -609,29 +609,19 @@ class FormulaAuditor
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Comments from default template
|
# Comments from default template
|
||||||
if line =~ /# PLEASE REMOVE/
|
[
|
||||||
problem "Please remove default template comments"
|
"# PLEASE REMOVE",
|
||||||
end
|
"# Documentation:",
|
||||||
if line =~ /# Documentation:/
|
"# if this fails, try separate make/make install steps",
|
||||||
problem "Please remove default template comments"
|
"# The URL of the archive",
|
||||||
end
|
"## Naming --",
|
||||||
if line =~ /# if this fails, try separate make\/make install steps/
|
"# if your formula requires any X11/XQuartz components",
|
||||||
problem "Please remove default template comments"
|
"# if your formula fails when building in parallel",
|
||||||
end
|
"# Remove unrecognized options if warned by configure",
|
||||||
if line =~ /# The URL of the archive/
|
].each do |comment|
|
||||||
problem "Please remove default template comments"
|
if line.include? comment
|
||||||
end
|
problem "Please remove default template comments"
|
||||||
if line =~ /## Naming --/
|
end
|
||||||
problem "Please remove default template comments"
|
|
||||||
end
|
|
||||||
if line =~ /# if your formula requires any X11\/XQuartz components/
|
|
||||||
problem "Please remove default template comments"
|
|
||||||
end
|
|
||||||
if line =~ /# if your formula fails when building in parallel/
|
|
||||||
problem "Please remove default template comments"
|
|
||||||
end
|
|
||||||
if line =~ /# Remove unrecognized options if warned by configure/
|
|
||||||
problem "Please remove default template comments"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# FileUtils is included in Formula
|
# FileUtils is included in Formula
|
||||||
|
Loading…
x
Reference in New Issue
Block a user