class RuboCop::Cop::Lint::ScriptPermission

def executable?(processed_source)

def executable?(processed_source)
  # Returns true if stat is executable or if the operating system
  # doesn't distinguish executable files from nonexecutable files.
  # See at: https://github.com/ruby/ruby/blob/ruby_2_4/file.c#L5362
  File.stat(processed_source.buffer.name).executable?
end