Revert #4593, msftidy extraneous comma check

Fixes #4626 by ignoring the problem identified.

This reverts commit 7c3378b2e6, reversing
changes made to cb0257bec7.
This commit is contained in:
Tod Beardsley 2015-01-22 14:27:34 -06:00
parent 980a010e15
commit 1d6524b4d9
No known key found for this signature in database
GPG Key ID: BD63D0A3EA19CAAC
1 changed files with 2 additions and 15 deletions

View File

@ -594,21 +594,9 @@ class Msftidy
def check_invalid_url_scheme
test = @source.scan(/^#.+http\/\/(?:www\.)?metasploit.com/)
unless test.empty?
test.each do |item|
test.each { |item|
info("Invalid URL: #{item}")
end
end
end
# This checks looks for extranous commas
# Stuff with comments should match too: , #metasploit module ]
# but it should not match interpolation #{
def check_comma
test = @source.scan(/[^\n]+,(?:\s*#[^{][^\n]+)?\s*[\]\}]/)
unless test.empty?
test.each do |item|
info("Extraneous comma: #{item}")
end
}
end
end
@ -661,7 +649,6 @@ def run_checks(full_filepath)
tidy.check_sock_get
tidy.check_udp_sock_get
tidy.check_invalid_url_scheme
tidy.check_comma
return tidy
end