Skip to content
Snippets Groups Projects
Commit 5cd8f628 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

audit (strict): check for use double-quotes.

parent c82e48b9
No related branches found
No related tags found
No related merge requests found
......@@ -549,6 +549,12 @@ class FormulaAuditor
good_system = bad_system.gsub(" ", "\", \"")
problem "Use `system #{good_system}` instead of `system #{bad_system}` "
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
......
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