Class: Simplabs::Excellent::Checks::CyclomaticComplexityCheck

Inherits:
Base
  • Object
show all
Defined in:
lib/simplabs/excellent/checks/cyclomatic_complexity_check.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from Base

#interesting_contexts, #interesting_files, #options, #warnings

Instance Method Summary collapse

Methods inherited from Base

#add_warning, #evaluate_context, #warnings_for

Constructor Details

#initialize(interesting_contexts, options = {}) ⇒ CyclomaticComplexityCheck

:nodoc:



11
12
13
14
15
# File 'lib/simplabs/excellent/checks/cyclomatic_complexity_check.rb', line 11

def initialize(interesting_contexts, options = {}) #:nodoc:
  super(options)
  @interesting_contexts = interesting_contexts
  @threshold            = options[:threshold].to_i
end