master
#!/usr/bin/env ruby
This cop checks if a file which has a shebang line as its first line is granted execute permission.
# bad # A file which has a shebang line as its first line is not# granted execute permission. #!/usr/bin/env rubyputs 'hello, world' # good # A file which has a shebang line as its first line is# granted execute permission. #!/usr/bin/env rubyputs 'hello, world' # good # A file which has not a shebang line as its first line is not# granted execute permission. puts 'hello, world'