ui/data/RD dynamic ruby/model/src/reek/examiner.rb
# Runs the Examiner on the given source to scan for code smells.
#
# In case one of the smell detectors raises an exception we probably hit a Reek bug.
# So we catch the exception here, let the user know something went wrong
# and continue with the analysis.
#
# @return [Array<SmellWarning>] the smells found in the source
#
# :reek:TooManyStatements { max_statements: 8 }
Runs the Examiner on the given source to scan for code smells.
In case one of the smell detectors raises an exception we probably hit a Reek bug.
So we catch the exception here, let the user know something went wrong
and continue with the analysis.
Runs the Examiner on the given source to scan for code smells . In case one of the smell detectors raises an exception we probably hit a Reek bug . So we catch the exception here let the user know something went wrong and continue with the analysis .
def run
      if source.valid_syntax? && syntax_tree
        begin
          examine_tree
        rescue Errors::BaseError => exception
          raise unless @error_handler.handle exception
          []
        end
      else
        SmellDetectors::Syntax.smells_from_source(source)
      end
    end
def run if source . valid_syntax? && syntax_tree begin examine_tree rescue Errors :: BaseError => exception raise unless @error_handler . handle exception [ ] end else SmellDetectors :: Syntax . smells_from_source ( source ) end end
Runs the Examiner on the given source to scan for code smells.
Runs the Examiner on the given source to scan for code smells .
the smells found in the source :reek:TooManyStatements { max_statements: 8 }
the smells found in the source : reek : TooManyStatements { max_statements : 8 }
Array<SmellWarning>