Skip to content

Commit ab73c16

Browse files
committed
Add Rubocop to msftidy. You now have 15 seconds to comply. You are in direct violation of Penal Code 1.13, Section 9.
1 parent 7f860a7 commit ab73c16

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/msftidy.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,12 @@ def check_extname
320320
end
321321
end
322322

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+
323329
def check_old_rubies
324330
return true unless CHECK_OLD_RUBIES
325331
return true unless Object.const_defined? :RVM
@@ -574,6 +580,7 @@ def run_checks(full_filepath)
574580
tidy.check_vuln_codes
575581
tidy.check_vars_get
576582
tidy.check_newline_eof
583+
tidy.check_rubocop
577584
return tidy
578585
end
579586

0 commit comments

Comments
 (0)