Msftidy checks for file loads

unstable
Tod Beardsley 2012-10-29 08:27:22 -05:00
parent b3e02f119c
commit ac90d21725
1 changed files with 5 additions and 0 deletions

View File

@ -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:]]*#/