Sha256: 0fac91d8699ce61a361470dc61a2750ace7f786deb310d574ac6ae0dc7046f9c

Contents?: true

Size: 471 Bytes

Versions: 12

Compression:

Stored size: 471 Bytes

Contents

require 'simplabs/excellent/checks/base'

module Simplabs

  module Excellent

    module Checks

      class FlogCheck < Base #:nodoc:

        def initialize(interesting_nodes, threshold)
          super()
          @interesting_nodes = interesting_nodes
          @threshold         = threshold
        end

        def evaluate(context)
          add_warning(*warning_args(context)) unless context.flog_score <= @threshold
        end

      end

    end

  end

end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
simplabs-excellent-1.2.1 lib/simplabs/excellent/checks/flog_check.rb
simplabs-excellent-1.2.2 lib/simplabs/excellent/checks/flog_check.rb
simplabs-excellent-1.3.0 lib/simplabs/excellent/checks/flog_check.rb
simplabs-excellent-1.3.1 lib/simplabs/excellent/checks/flog_check.rb
simplabs-excellent-1.4.0 lib/simplabs/excellent/checks/flog_check.rb
simplabs-excellent-1.4.1 lib/simplabs/excellent/checks/flog_check.rb
simplabs-excellent-1.4.2 lib/simplabs/excellent/checks/flog_check.rb
simplabs-excellent-1.5.0 lib/simplabs/excellent/checks/flog_check.rb
simplabs-excellent-1.5.1 lib/simplabs/excellent/checks/flog_check.rb
simplabs-excellent-1.5.2 lib/simplabs/excellent/checks/flog_check.rb
simplabs-excellent-1.5.3 lib/simplabs/excellent/checks/flog_check.rb
excellent-1.5.4 lib/simplabs/excellent/checks/flog_check.rb