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