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