def process_external_files(root_ast)
      loader = FileLoader.new(
        :directories  => configuration.directories,
        :ignore_paths => configuration.ignore_paths
      )

      nodes    = []
      comments = {}

      loader.iterate(root_ast)

      loader.nodes.each do |(ast, comment_associations)|
        nodes << ast

        comments.merge!(comment_associations)
      end

      return nodes, comments
    end
def process_external_files(root_ast)
      loader = FileLoader.new(
        :directories  => configuration.directories,
        :ignore_paths => configuration.ignore_paths
      )

      nodes    = []
      comments = {}

      loader.iterate(root_ast)

      loader.nodes.each do |(ast, comment_associations)|
        nodes << ast

        comments.merge!(comment_associations)
      end

      return nodes, comments
    end
Processes external Ruby files using {RubyLint::FileLoader}. The return
 value is a collection of AST nodes and a Hash containing all the
 associated comments.

 @param [RubyLint::AST::Node] root_ast
 @return [Array]