Sha256: 0d1003fac8149072431bdb5cf1e6c1561c06b8c50a0ead5f3b4bb447d5981ebb
Contents?: true
Size: 522 Bytes
Versions: 4
Compression:
Stored size: 522 Bytes
Contents
require 'simplabs/excellent/checks/base' module Simplabs module Excellent module Checks class LineCountCheck < Base #:nodoc: def initialize(interesting_contexts, options = {}) #:nodoc: super(options) @interesting_contexts = interesting_contexts @threshold = options[:threshold].to_i end def evaluate(context) add_warning(*warning_args(context)) unless context.line_count <= @threshold end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems