From ac90d217259bc3aeb91e4029b126a2b268c67230 Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Mon, 29 Oct 2012 08:27:22 -0500 Subject: [PATCH 1/2] 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:]]*#/ From bd0352de1993b339ad9c6aeccf730ed5817c773a Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Mon, 29 Oct 2012 08:33:01 -0500 Subject: [PATCH 2/2] Delete comment --- tools/msftidy.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/msftidy.rb b/tools/msftidy.rb index 505fb15855..e630ea2c8b 100755 --- a/tools/msftidy.rb +++ b/tools/msftidy.rb @@ -208,7 +208,6 @@ 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