Sha256: a219be6489b8afba699eeb48a9bf16d615e72e514f5f8b4327508a7e38dfeb2b
Contents?: true
Size: 476 Bytes
Versions: 3
Compression:
Stored size: 476 Bytes
Contents
require 'simplabs/excellent/checks/base' module Simplabs module Excellent module Checks class NameCheck < Base #:nodoc: def initialize(interesting_contexts, pattern) super() @interesting_contexts = interesting_contexts @pattern = pattern end def evaluate(context) add_warning(*warning_args(context)) unless context.name.to_s =~ @pattern end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
excellent-1.7.1 | lib/simplabs/excellent/checks/name_check.rb |
excellent-1.7.0 | lib/simplabs/excellent/checks/name_check.rb |
excellent-1.6.0 | lib/simplabs/excellent/checks/name_check.rb |