How to add exclude rules in the yaml file?