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:
commit
8715eb36a8
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user