I've so far been unable to use onlyAnalyze with inner classes.
According to the doc, using the same syntax as used to import should work (with a public static class for instance it could be my.package.MyClass.Inner).
However, everything I've tried fails:
My use case is the following. I'm trying to get analyses run as fast as possible. For a given changeset, I know exactly which files have been modified, so I want Findbugs just to analyze those classes, and any inner classes the may have. I can get it to analyze the top level classes, but fail misserably when trying to analyze inner clases (regardless of visibility, or being public or not).
Thanks in advanced
Am I missing something? Or is this usecase outside the scope of Findbugs?
Okay, I was able to analyze a public static class by using my.package.MyClass$Inner and escaping it properly, but I'm still unable to analyze all inner classes of a class in any way...
By looking at the source ( https://code.google.com/p/findbugs/source/browse/findbugs/src/java/edu/umd/cs/findbugs/ClassScreener.java?name=master ) this seems not to be possible at all...
I was able to do it, but in a really dirty way... I had to use my.package.MyClass$\S+ and abuse on the fact that the given path is not quoted for the RegExp. However, this not being documented in the option, it feels extremely dirty and I feel a cleaner way should be available...