lib/fasterer/analyzer.rb in fasterer-0.1.1 vs lib/fasterer/analyzer.rb in fasterer-0.1.2

- old
+ new

@@ -1,11 +1,10 @@ require 'fasterer/method_definition' require 'fasterer/method_call' require 'fasterer/rescue_call' require 'fasterer/offense_collector' require 'fasterer/parser' -require 'fasterer/parse_error' require 'fasterer/scanners/method_call_scanner' require 'fasterer/scanners/rescue_call_scanner' require 'fasterer/scanners/method_definition_scanner' module Fasterer @@ -18,10 +17,9 @@ @file_content = File.read(file_path) end def scan sexp_tree = Fasterer::Parser.parse(@file_content) - fail ParseError.new(file_path) if sexp_tree.nil? traverse_sexp_tree(sexp_tree) end def errors @errors ||= Fasterer::OffenseCollector.new