If I got you right, you want to exclude or change rules of SpotBugs. This works nicely with the excludeFilter - an xml file in which you can customize rules based on patterns.
Please refer to