Sha256: b986d25637ec909e4df0eb36401b93941c80692b26132e994354dfc42aba5a33
Contents?: true
Size: 354 Bytes
Versions: 2
Compression:
Stored size: 354 Bytes
Contents
require 'simplabs/excellent/checks/base' module Simplabs module Excellent module Checks class ClassVariableCheck < Base def interesting_nodes [:cvar] end def evaluate(node) add_error('Class variable {{variable}}.', { :variable => node.value }, -1) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simplabs-excellent-1.0.0 | lib/simplabs/excellent/checks/class_variable_check.rb |
simplabs-excellent-1.0.1 | lib/simplabs/excellent/checks/class_variable_check.rb |