We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4224008 commit 88ed840Copy full SHA for 88ed840
tools/msftidy.rb
@@ -601,6 +601,15 @@ def check_invalid_url_scheme
601
end
602
603
604
+ # Check for (v)print_debug usage, since it doesn't exist anymore
605
+ #
606
+ # @see https://github.com/rapid7/metasploit-framework/issues/3816
607
+ def check_print_debug
608
+ if @source =~ /print_debug/
609
+ error('Please don\'t use (v)print_debug, use vprint_(status|good|error|warning) instead')
610
+ end
611
612
+
613
private
614
615
def load_file(file)
@@ -650,6 +659,7 @@ def run_checks(full_filepath)
650
659
tidy.check_sock_get
651
660
tidy.check_udp_sock_get
652
661
tidy.check_invalid_url_scheme
662
+ tidy.check_print_debug
653
663
return tidy
654
664
655
665
0 commit comments