I want to make exceptions to certain rules

for example. if exist Rule name CUSTOM_RULE, i want to detect CUSTOM_RULE except src IP: 10.0.0.10