@comparator<EOL>def no_intersection(to_validate, constraint, violation_cfg):
if len(constraint) == <NUM_LIT:0> or len(set(constraint).intersection(to_validate)) > <NUM_LIT:0>:<EOL><INDENT>return None<EOL><DEDENT>else:<EOL><INDENT>violation_cfg[Check.CFG_KEY_VIOLATION_MSG] = violation_cfg[Check.CFG_KEY_VIOLATION_MSG].format(constraint)<EOL>return violation_cfg<EOL><DEDENT>
Returns violation message if validated and constraint sets have no intersection
:param to_validate:
:param constraint:
:param violation_cfg:
:return: