lib/simplabs/excellent/checks/flog_class_check.rb in excellent-1.7.2 vs lib/simplabs/excellent/checks/flog_class_check.rb in excellent-2.0.0

- old
+ new

@@ -19,11 +19,11 @@ class FlogClassCheck < FlogCheck DEFAULT_THRESHOLD = 300 def initialize(options = {}) #:nodoc: - threshold = options[:threshold] || DEFAULT_THRESHOLD - super([Parsing::ClassContext], threshold) + options[:threshold] ||= DEFAULT_THRESHOLD + super([Parsing::ClassContext], options) end protected def warning_args(context) #:nodoc: