Land #2620 - Add #! check to msftidy

bug/bundler_fix
sinn3r 2013-11-11 10:40:45 -06:00
commit 472d906ab8
No known key found for this signature in database
GPG Key ID: 2384DB4EF06F730B
1 changed files with 7 additions and 0 deletions

View File

@ -84,6 +84,12 @@ class Msftidy
end end
end end
def check_shebang
if @source =~ /^#!/
warn("Module should not have a #! line")
end
end
def check_ref_identifiers def check_ref_identifiers
in_super = false in_super = false
in_refs = false in_refs = false
@ -444,6 +450,7 @@ end
def run_checks(full_filepath) def run_checks(full_filepath)
tidy = Msftidy.new(full_filepath) tidy = Msftidy.new(full_filepath)
tidy.check_mode tidy.check_mode
tidy.check_shebang
tidy.check_ref_identifiers tidy.check_ref_identifiers
tidy.check_old_keywords tidy.check_old_keywords
tidy.check_verbose_option tidy.check_verbose_option