问题
Is there any way to tell SonarQube not to count an overriding method into the public documented api statistics if the overridden method is documented? SonarQube finds many methods lacking annotation due to the case below.
I know there is an annotation to ignore certain rules of SonarQube, however we don't want to add code to our project in order to satisfy SonarQube.
回答1:
You could use inherit doc.
/**
* {@inheritDoc}
*/
@Override
来源:https://stackoverflow.com/questions/34070485/ignore-missing-documentation-if-superclass-has-documentation