def run_analysis(ast, vm, report)
      classes = configuration.analysis_classes.select do |const|
        const.analyze?(ast, vm)
      end

      classes.each do |const|
        instance = const.new(
          :vm     => vm,
          :report => report,
          :config => configuration
        )

        instance.iterate(ast)
      end
    end
def run_analysis(ast, vm, report)
      classes = configuration.analysis_classes.select do |const|
        const.analyze?(ast, vm)
      end

      classes.each do |const|
        instance = const.new(
          :vm     => vm,
          :report => report,
          :config => configuration
        )

        instance.iterate(ast)
      end
    end
Runs all the registered analysis classes.

 @param [RubyLint::AST::Node] ast
 @param [RubyLint::VirtualMachine] vm
 @param [RubyLint::Report] report