# File lib/kwala/actions/executable_files_check.rb, line 53
  def build_action(context)
    context.ruby_files.each do |f|
      exec = File.executable?(f)
      bang = ("#!/" == IO.read(f, 3, 0))
      if exec ^ bang
        if exec
          prob = "executable, no shell bang"
        else
          prob = "shell bang, not executable"
        end
        @problem_files << { :filename => f, :problem => prob }
      end
      @shellbang_files_LOC[f] = count_loc(f) if bang
    end
    @sorted_shellbang_files_LOC = @shellbang_files_LOC.sort {|a,b| b[1] <=> a[1] }
  end