Skip to content

Commit 2664fc8

Browse files
committed
Merge branch 'msftidy-loadcheck' of git://github.com/todb-r7/metasploit-framework into todb-r7-msftidy-loadcheck
2 parents 6ec392c + bd0352d commit 2664fc8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/msftidy.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@ def check_lines
208208
end
209209
end
210210

211+
if ln =~/^[ \t]*load[ \t]+[\x22\x27]/
212+
error("Loading (not requiring) a file: #{ln.inspect}", idx)
213+
end
214+
211215
# The rest of these only count if it's not a comment line
212216
next if ln =~ /[[:space:]]*#/
213217

0 commit comments

Comments
 (0)