File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 11
11
require 'time'
12
12
13
13
CHECK_OLD_RUBIES = !!ENV [ 'MSF_CHECK_OLD_RUBIES' ]
14
+ SUPRESS_INFO_MESSAGES = !!ENV [ 'MSF_SUPPRESS_INFO_MESSAGES' ]
14
15
15
16
if CHECK_OLD_RUBIES
16
17
require 'rvm'
@@ -91,6 +92,7 @@ def fixed(txt, line=0)
91
92
# Display an info message. Info messages do not alter the exit status.
92
93
#
93
94
def info ( txt , line = 0 )
95
+ return if SUPRESS_INFO_MESSAGES
94
96
line_msg = ( line >0 ) ? ":#{ line } " : ''
95
97
puts "#{ @full_filepath } #{ line_msg } - [#{ 'INFO' . cyan } ] #{ cleanup_text ( txt ) } "
96
98
end
@@ -471,9 +473,12 @@ def check_lines
471
473
error ( "Writes to stdout" , idx )
472
474
end
473
475
474
- # do not change datastore in code
476
+ # You should not change datastore in code. For reasons. See
477
+ # RM#8498 for discussion, starting at comment #16:
478
+ #
479
+ # https://dev.metasploit.com/redmine/issues/8498#note-16
475
480
if ln =~ /(?<!\. )datastore\[ ["'][^"']+["']\] \s *=(?![=~>])/
476
- error ( "datastore is modified in code: #{ ln } " , idx )
481
+ info ( "datastore is modified in code: #{ ln } " , idx )
477
482
end
478
483
479
484
# do not read Set-Cookie header (ignore commented lines)
You can’t perform that action at this time.
0 commit comments