Ignore missing documentation if superclass has documentation

筅森魡賤 提交于 2019-12-11 14:06:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!