1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-29 18:07:27 +01:00

Land #2300 - chk datastore mods

This commit is contained in:
sinn3r 2013-09-12 15:09:09 -05:00
commit 8715eb36a8

View File

@ -381,6 +381,11 @@ class Msftidy
no_stdio = false
error("Writes to stdout", idx)
end
# do not change datastore in code
if ln =~ /(?<!\.)datastore\[["'][^"']+["']\]\s*=(?![=~>])/
error("datastore is modified in code: #{ln.inspect}", idx)
end
}
end