Findbugs: ignore some missing classes but report others

*爱你&永不变心* 提交于 2019-12-13 16:42:18

问题


Using findbugs I get the following:

The following classes needed for analysis were missing:
  foo.bar.Class1
  foo.bar.Class2

I know why these classes are missing, and I'm fine with it. Since I'm using this via ant, I could use the quietErrors parameter, but

  1. It would also quiet "serious analysis errors", which I'd want to know about.
  2. If, in the future, there winds up being other missing classes, I want to be told about it so I can determine if I do mind those other classes being missing.

So, is there any way to tell findbugs to not inform me about those specific classes being missing, but still tell me about other missing classes? I tried to use an exclude filter to exclude the classes of mine which reference the missing classes, but 1) that doesn't work, and 2) even it did work, I don't want to exclude entire classes from analysis just to avoid those warning messages.

来源:https://stackoverflow.com/questions/26149462/findbugs-ignore-some-missing-classes-but-report-others

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