Add check for (v)print_debug to msftidy

bug/bundler_fix
jvazquez-r7 2015-04-21 11:27:22 -05:00
parent 4224008709
commit 88ed8406d1
No known key found for this signature in database
GPG Key ID: 38D99152B9352D83
1 changed files with 10 additions and 0 deletions

View File

@ -601,6 +601,15 @@ class Msftidy
end
end
# Check for (v)print_debug usage, since it doesn't exist anymore
#
# @see https://github.com/rapid7/metasploit-framework/issues/3816
def check_print_debug
if @source =~ /print_debug/
error('Please don\'t use (v)print_debug, use vprint_(status|good|error|warning) instead')
end
end
private
def load_file(file)
@ -650,6 +659,7 @@ def run_checks(full_filepath)
tidy.check_sock_get
tidy.check_udp_sock_get
tidy.check_invalid_url_scheme
tidy.check_print_debug
return tidy
end