Be more exact about shebang checking
parent
110e78a1ad
commit
6c7a98ef47
|
@ -85,7 +85,7 @@ class Msftidy
|
|||
end
|
||||
|
||||
def check_shebang
|
||||
if @source =~ /^#!/
|
||||
if @source.lines.first =~ /^#!/
|
||||
warn("Module should not have a #! line")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue