Add support to checkAgainstRule
with custom rules
#6460
+165
−80
Merged