Update audit for Fortran dependency

This commit is contained in:
Adam Vandenberg 2013-06-23 20:40:00 -07:00
parent 0f1d491d81
commit 41352cf1a8

View File

@ -161,7 +161,7 @@ class FormulaAuditor
bindings for 2.x and 3.x in parallel and much more. bindings for 2.x and 3.x in parallel and much more.
EOS EOS
when 'gfortran' when 'gfortran'
problem "Use ENV.fortran during install instead of depends_on 'gfortran'" problem "Use `depends_on :fortran` instead of `depends_on 'gfortran'`"
when 'open-mpi', 'mpich2' when 'open-mpi', 'mpich2'
problem <<-EOS.undent problem <<-EOS.undent
There are multiple conflicting ways to install MPI. Use an MPIDependency: There are multiple conflicting ways to install MPI. Use an MPIDependency:
@ -462,6 +462,10 @@ class FormulaAuditor
if text =~ /^def (\w+).*$/ if text =~ /^def (\w+).*$/
problem "Define method #{$1.inspect} in the class body, not at the top-level" problem "Define method #{$1.inspect} in the class body, not at the top-level"
end end
if text =~ /ENV.fortran/
problem "Use `depends_on :fortran` instead of `ENV.fortran`"
end
end end
def audit_python def audit_python