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 7f860a7 commit ab73c16Copy full SHA for ab73c16
tools/msftidy.rb
@@ -320,6 +320,12 @@ def check_extname
320
end
321
322
323
+ def check_rubocop
324
+ out = %x{rubocop -n #{@full_filepath}}
325
+ ret = $?
326
+ error("Fails to pass Rubocop Ruby style guidelines (run 'rubocop #{@full_filepath}' to see violations)") unless ret.exitstatus == 0
327
+ end
328
+
329
def check_old_rubies
330
return true unless CHECK_OLD_RUBIES
331
return true unless Object.const_defined? :RVM
@@ -574,6 +580,7 @@ def run_checks(full_filepath)
574
580
tidy.check_vuln_codes
575
581
tidy.check_vars_get
576
582
tidy.check_newline_eof
583
+ tidy.check_rubocop
577
584
return tidy
578
585
579
586
0 commit comments