Skip to content

Commit 7654196

Browse files
author
Tod Beardsley
committed
Demote datastore edits to info status
SeeRM rapid7#8498
1 parent e363027 commit 7654196

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/msftidy.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,12 @@ def check_lines
471471
error("Writes to stdout", idx)
472472
end
473473

474-
# do not change datastore in code
474+
# You should not change datastore in code. For reasons. See
475+
# RM#8498 for discussion, starting at comment #16:
476+
#
477+
# https://dev.metasploit.com/redmine/issues/8498#note-16
475478
if ln =~ /(?<!\.)datastore\[["'][^"']+["']\]\s*=(?![=~>])/
476-
error("datastore is modified in code: #{ln}", idx)
479+
info("datastore is modified in code: #{ln}", idx)
477480
end
478481

479482
# do not read Set-Cookie header (ignore commented lines)

0 commit comments

Comments
 (0)