Skip to content

Commit e52d67c

Browse files
author
Brent Cook
committed
add architecture check
1 parent f313389 commit e52d67c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tools/dev/msftidy.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,15 @@ def check_use_datastore_debug
684684
end
685685
end
686686

687+
# Check for modules using the deprecated architectures
688+
#
689+
# @see https://github.com/rapid7/metasploit-framework/pull/7507
690+
def check_arch
691+
if @source =~ /ARCH_X86_64/
692+
error('Please don\'t use the ARCH_X86_64 architecture, use ARCH_X64 instead')
693+
end
694+
end
695+
687696
#
688697
# Run all the msftidy checks.
689698
#
@@ -717,6 +726,7 @@ def run_checks
717726
check_print_debug
718727
check_register_datastore_debug
719728
check_use_datastore_debug
729+
check_arch
720730
end
721731

722732
private

0 commit comments

Comments
 (0)