Sha256: 42bb92cb25392aa4b89ae446b6bf4e3ece39f20011215d8ff1cb8aae7dfa1b9a

Contents?: true

Size: 476 Bytes

Versions: 12

Compression:

Stored size: 476 Bytes

Contents

require 'simplabs/excellent/checks/base'

module Simplabs

  module Excellent

    module Checks

      class LineCountCheck < 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.line_count <= @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/line_count_check.rb
simplabs-excellent-1.2.2 lib/simplabs/excellent/checks/line_count_check.rb
simplabs-excellent-1.3.0 lib/simplabs/excellent/checks/line_count_check.rb
simplabs-excellent-1.3.1 lib/simplabs/excellent/checks/line_count_check.rb
simplabs-excellent-1.4.0 lib/simplabs/excellent/checks/line_count_check.rb
simplabs-excellent-1.4.1 lib/simplabs/excellent/checks/line_count_check.rb
simplabs-excellent-1.4.2 lib/simplabs/excellent/checks/line_count_check.rb
simplabs-excellent-1.5.0 lib/simplabs/excellent/checks/line_count_check.rb
simplabs-excellent-1.5.1 lib/simplabs/excellent/checks/line_count_check.rb
simplabs-excellent-1.5.2 lib/simplabs/excellent/checks/line_count_check.rb
simplabs-excellent-1.5.3 lib/simplabs/excellent/checks/line_count_check.rb
excellent-1.5.4 lib/simplabs/excellent/checks/line_count_check.rb