Sha256: bcb815a832f78e9ec327b749a3fcb68cbb250e7d7405d7117addefd1fd726c41
Contents?: true
Size: 483 Bytes
Versions: 4
Compression:
Stored size: 483 Bytes
Contents
require 'simplabs/excellent/checks/base' module Simplabs module Excellent module Checks class FlogCheck < Base #:nodoc: def initialize(interesting_contexts, threshold) super() @interesting_contexts = interesting_contexts @threshold = threshold end def evaluate(context) add_warning(*warning_args(context)) unless context.flog_score <= @threshold end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems