Skip to content
Snippets Groups Projects
Commit 9e8bf841 authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

audit checks for passing dashes to build.include?

parent e8734116
No related branches found
No related tags found
No related merge requests found
......@@ -368,6 +368,10 @@ class FormulaAuditor
problem "Use 'build.head?' instead of inspecting 'version'"
end
if text =~ /build\.include\?\s+['"]\-\-(.*)['"]/
problem "Reference '#{$1}' without dashes."
end
if text =~ /ARGV\.(?!(debug|verbose)\?)/
problem "Use build instead of ARGV to check options."
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment