Skip to content

Commit

Permalink
Add check_executable check to msftidy
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoles committed Nov 30, 2019
1 parent d2f83f8 commit ddf9cf7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/dev/msftidy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,12 @@ def check_extname
end
end

def check_executable
if File.executable?(@full_filepath)
error("Module should not be executable (+x)")
end
end

def check_old_rubies
return true unless CHECK_OLD_RUBIES
return true unless Object.const_defined? :RVM
Expand Down Expand Up @@ -728,6 +734,7 @@ def run_checks
check_verbose_option
check_badchars
check_extname
check_executable
check_old_rubies
check_ranking
check_disclosure_date
Expand Down

0 comments on commit ddf9cf7

Please sign in to comment.