From ac90d217259bc3aeb91e4029b126a2b268c67230 Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Mon, 29 Oct 2012 08:27:22 -0500 Subject: [PATCH] Msftidy checks for file loads --- tools/msftidy.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/msftidy.rb b/tools/msftidy.rb index cdcf95aea8..505fb15855 100755 --- a/tools/msftidy.rb +++ b/tools/msftidy.rb @@ -208,6 +208,11 @@ class Msftidy end end + # if ln =~/^[ \t]+load[ \t]+.*?\.rb/ + if ln =~/^[ \t]*load[ \t]+[\x22\x27]/ + error("Loading (not requiring) a file: #{ln.inspect}", idx) + end + # The rest of these only count if it's not a comment line next if ln =~ /[[:space:]]*#/