File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-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
- CHECK_RUBOCOP = !!ENV [ 'MSF_CHECK_RUBOCOP' ]
15
14
SUPPRESS_INFO_MESSAGES = !!ENV [ 'MSF_SUPPRESS_INFO_MESSAGES' ]
16
15
17
16
if CHECK_OLD_RUBIES
@@ -321,8 +320,10 @@ def check_extname
321
320
end
322
321
end
323
322
323
+ # Explicitly skip this check if we're suppressing info messages
324
+ # anyway, since it takes a fair amount of time per module to perform.
324
325
def check_rubocop
325
- return true unless CHECK_RUBOCOP
326
+ return true if SUPPRESS_INFO_MESSAGES
326
327
out = %x{rubocop -n #{ @full_filepath } }
327
328
ret = $?
328
329
info ( "Fails to pass Rubocop Ruby style guidelines (run 'rubocop #{ @full_filepath } ' to see violations)" ) unless ret . exitstatus == 0
You can’t perform that action at this time.
0 commit comments