Skip to content

Commit c73892b

Browse files
committed
Nuke datastore modification check from orbit
1 parent fd11aff commit c73892b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

tools/msftidy.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -531,12 +531,6 @@ def check_lines
531531
error("Writes to stdout", idx)
532532
end
533533

534-
# You should not change datastore in code. See
535-
# https://github.com/rapid7/metasploit-framework/issues/3853
536-
if ln =~ /(?<!\.)datastore\[["'][^"']+["']\]\s*(=|<<)(?![=~>])/
537-
info("datastore is modified in code with '#{Regexp.last_match(1)}': #{ln}", idx)
538-
end
539-
540534
# do not read Set-Cookie header (ignore commented lines)
541535
if ln =~ /^(?!\s*#).+\[['"]Set-Cookie['"]\](?!\s*=[^=~]+)/i
542536
warn("Do not read Set-Cookie header directly, use res.get_cookies instead: #{ln}", idx)

0 commit comments

Comments
 (0)