lib/chapex/check/mixin/field_concern.rb
# check :name type child value is match specified regex.
check :name type child value is match specified regex.
check : name type child value is match specified regex .
def check_name_pattern(node, regex)
        check_node = node.find(:name)
        field_name = check_node.value
        return if field_name =~ regex
        add_violation(check_node.location, field_name)
      end
def check_name_pattern ( node , regex ) check_node = node . find ( :name ) field_name = check_node . value return if field_name =~ regex add_violation ( check_node . location , field_name ) end
check :name type child value is match specified regex.
check : name type child value is match specified regex .
node
<not_specific>
regex
<not_specific>