Sha256: 13f30a3c0a42043717d96b949357f2e755e105d738c3a0b5aca8d61c23562c9a
Contents?: true
Size: 464 Bytes
Versions: 12
Compression:
Stored size: 464 Bytes
Contents
require 'simplabs/excellent/checks/base' module Simplabs module Excellent module Checks class NameCheck < Base #:nodoc: def initialize(interesting_nodes, pattern) super() @interesting_nodes = interesting_nodes @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
12 entries across 12 versions & 2 rubygems