<s> import re <EOL> from vint . ast . node_type import NodeType <EOL> from vint . linting . level import Level <EOL> from vint . linting . policy . abstract_policy import AbstractPolicy <EOL> from vint . linting . policy_registry import register_policy <EOL> @ register_policy <EOL> class ProhibitSetNoCompatible ( AbstractPolicy ) : <EOL> def __init__ ( self ) : <EOL> super ( ProhibitSetNoCompatible , self ) . __init__ ( ) <EOL> self . description = '<STR_LIT>' <EOL> self . reference = '<STR_LIT>' <EOL> self . level = Level . WARNING <EOL> def listen_node_types ( self ) : <EOL> return [ NodeType . EXCMD ] <EOL> def is_valid ( self , node , lint_context ) : <EOL> """<STR_LIT>""" <EOL> command = node [ '<STR_LIT:str>' ] <EOL> is_nocompatible = re . match ( r'<STR_LIT>' , command ) <EOL> return not is_nocompatible </s>
