I am working on a Java project which uses MapStruct. We would like the SonarQube Java rule engine's rule "Public types, methods and fields (API) should be documented with Javadoc" to be ignored for method declarations in MapStruct's mappers, because they are self-explanatory and there is a lot of them, so it is making the sonar's issues a mess.
Is there a way to do that? I can't find any answers, but I can't imagine everyone else is typing meaningless Javadocs to fulfil the rule.
@SuppressWarnings( "javadoc" )to the respective class or to each element that lacks the documentation? I do not know SonarQube, so I do not know whether it honours the annotation, but it may be worth a try.