I think that this rule was enabled by default at 1.2.0. As a quick fix you can disable it. Could you open an issue to porting this? We should add a configuration to exclude classes with certain annotations. And if you could list or link the Spring's annotations that have this behavior would help a lot.