如果超类有文档,请忽略丢失的文档 [英] Ignore missing documentation if superclass has documentation
本文介绍了如果超类有文档,请忽略丢失的文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
$ b $我知道有一个注释忽略了SonarQube的某些规则,但是我们不想为我们的项目添加代码,以满足SonarQube。
解决方案
您可以使用继承文档。
/ **
* {@ inheritDoc}
* /
@Override
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.
解决方案
You could use inherit doc.
/**
* {@inheritDoc}
*/
@Override
这篇关于如果超类有文档,请忽略丢失的文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文