You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: check_default_routes.rb
    path of file: ./repos/brakeman/lib/brakeman/checks
    
    the code of the file until where you have to start completion: require 'brakeman/checks/base_check'

#Checks if default routes are allowed in routes.rb
class Brakeman::CheckDefaultRoutes < Brakeman::BaseCheck
  Brakeman::Checks.add self

  @description = "Checks for default routes"

  def initialize *args
    super
    @actions_allowed_on_controller = nil
  end

  #Checks for :allow_all_actions globally and for individual r
    
  def check_for_default_routes
    if allow_all_actions?
      #Default routes are enabled globally
      warn :warning_type => "Default Routes",
        :warning_code => :all_default_routes,
        :message => msg("All public methods in controllers are available as actions in ", msg_file("routes.rb")),
        :line => tracker.routes[:allow_all_actions].line,
        :confidence => :high,
        :file => "#{tracker.app_path}/config/routes.rb",
        :cwe_id => [22]
    end