Sha256: 85d763c76795b3a6496a492f3abb160419054b56a0fada19f1c21cf7c002c49a
Contents?: true
Size: 517 Bytes
Versions: 4
Compression:
Stored size: 517 Bytes
Contents
require 'simplabs/excellent/checks/base' module Simplabs module Excellent module Checks class FlogCheck < 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.flog_score <= @threshold end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems