We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab73c16 commit 81a9808Copy full SHA for 81a9808
tools/msftidy.rb
@@ -11,6 +11,7 @@
11
require 'time'
12
13
CHECK_OLD_RUBIES = !!ENV['MSF_CHECK_OLD_RUBIES']
14
+CHECK_RUBOCOP = !!ENV['MSF_CHECK_RUBOCOP']
15
SUPPRESS_INFO_MESSAGES = !!ENV['MSF_SUPPRESS_INFO_MESSAGES']
16
17
if CHECK_OLD_RUBIES
@@ -321,9 +322,10 @@ def check_extname
321
322
end
323
324
def check_rubocop
325
+ return true unless CHECK_RUBOCOP
326
out = %x{rubocop -n #{@full_filepath}}
327
ret = $?
- error("Fails to pass Rubocop Ruby style guidelines (run 'rubocop #{@full_filepath}' to see violations)") unless ret.exitstatus == 0
328
+ info("Fails to pass Rubocop Ruby style guidelines (run 'rubocop #{@full_filepath}' to see violations)") unless ret.exitstatus == 0
329
330
331
def check_old_rubies
0 commit comments