audit (strict): check for use double-quotes.
This commit is contained in:
parent
c82e48b904
commit
5cd8f62865
@ -549,6 +549,12 @@ class FormulaAuditor
|
|||||||
good_system = bad_system.gsub(" ", "\", \"")
|
good_system = bad_system.gsub(" ", "\", \"")
|
||||||
problem "Use `system #{good_system}` instead of `system #{bad_system}` "
|
problem "Use `system #{good_system}` instead of `system #{bad_system}` "
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if line =~ /^[^#"]*('[^']*')/
|
||||||
|
bad_quotes = $1
|
||||||
|
good_quotes = bad_quotes.gsub "'", "\""
|
||||||
|
problem "use double-quotes for `#{good_quotes}` instead of `#{bad_quotes}`"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user