audit: restore check that was lost in #927

This audit check ensures that certain build dependencies
are explicitly marked either as `:build` or `:run`.
It seems to have been lost in #927.
It was also adjusted in #1290.
This commit is contained in:
Steven Peters 2016-11-02 16:49:37 -07:00
parent 89fd34b24e
commit 72f889fef0

View File

@ -415,6 +415,12 @@ class FormulaAuditor
EOS
when *BUILD_TIME_DEPS
next if dep.build? || dep.run?
problem <<-EOS.undent
#{dep} dependency should be
depends_on "#{dep}" => :build
Or if it is indeed a runtime dependency
depends_on "#{dep}" => :run
EOS
end
end
end