logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Findbugs Eclipse Plugin handles preferences indeterministically: msg#00020

Subject: Findbugs Eclipse Plugin handles preferences indeterministically
Dear findbugs developers,

I would like to introduce findbugs in a project with multiple
developers. However, I always struggled with findbugs settings in the
past..

Last week, I installed the latest and greatest findbugs 0.9.4 eclipse
plugin. Moreover, I installed fb-contrib 2.0.0 by placing its jar file
in the findbugs plugin directory. I also removed ".fbprefs" from my
Eclipse project such that there were no old settings.

Then, I started Eclipse, opened my project, opened the project settings
dialog and activated all findbugs warnings. Findbugs reported a couple
of warnings. I was happy and committed the ".fbprefs" file to my
project's repository so everybody could use it. So far, so good.

Today, I decided that "circular dependency" is not really an issue in
our project. So I deactivated this type of warning in the project
settings dialog. As a result, findbugs saved a new .fbprefs file. The
new .fbprefs looked totally different from the former one, because
findbugs stores the detector entries in an arbitrary order (question:
could the order please be a bit more deterministic???). 

But what really astonished me was the fact that the new .fbprefs file
was larger than the former one. I inspected the old and the new file and
it turned out that findbugs added the following entries:

 BCPMethodReturnCheck|false
 CheckCalls|false
 EqStringTest|false
 FindBadCast|false
 FindBadEqualsImplementation|false
 FindBugsSummaryStats|true
 FindFloatMath|false
 FindSqlInjection|false
 FindUnsatisfiedObligation|false
 LockedFields|false
 NoteCheckReturnValueAnnotations|true
 NoteCheckReturnValue|true
 NoteNonNullAnnotations|true
 NoteSuppressedWarnings|true
 NoteUnconditionalParamDerefs|true
 ResolveAllReferences|false
 TestingGround|false
 TrainFieldStoreTypes|true
 TrainNonNullAnnotations|true
 TrainUnconditionalDerefParams|true

Hmmmm....

Where do these entries come from? Why haven't they been there before?
And why is the list of detectors in .fbprefs larger than the list shown
in Eclipse's project settings? 

Thank you very much in advance for help! After all, Findbugs is an
excellent tool!

Michael Gerz



<Prev in Thread] Current Thread [Next in Thread>