Ignore missing documentation if superclass has doc

2019-08-11 07:31发布

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.

enter image description here

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条回答
疯言疯语
2楼-- · 2019-08-11 07:38

You could use inherit doc.

/**
 * {@inheritDoc}
 */
@Override
查看更多
登录 后发表回答