changing if condition

This commit is contained in:
Raza Hussain 2017-03-26 12:54:25 -04:00
parent 008a44bd91
commit 86cf8873b6

View File

@ -1176,8 +1176,8 @@ class FormulaAuditor
problem "Use `assert_match` instead of `assert ...include?`" problem "Use `assert_match` instead of `assert ...include?`"
end end
if line.include?('system "npm", "install"') && !line.include?("Language::Node")\ if line.include?('system "npm", "install"') && !line.include?("Language::Node") &&
&& formula.name !~ /^kibana(\@\d+(\.\d+)?)?$/ formula.name !~ /^kibana(\@\d+(\.\d+)?)?$/
problem "Use Language::Node for npm install args" problem "Use Language::Node for npm install args"
end end