Hi,

Just for grins, I decided to run some code analysis tools on FreeMind in 
order to find out what kind of tools might be most useful to use. The 
ones I'm using are static analysis, which has improved a great deal 
since I last looked at it.

Since I'd already downloaded IntelliJIDEA for its 30-day free trial, I 
decided it might be fun to run its analysis tools. Altogether, it 
identified 4,440 items, most of which are nits. But it did identify 216 
probable bugs, such as this one below:

Controller.java ...
 if (map != null && map != "") {

It should be:
if (map != null && !map.equals("") {

There are 15 of those, all of which could cause problems.

There are also some others, mostly structural issues, where even if the 
code isn't causing a bug, it probably could be written a bit more 
clearly so a maintainer wasn't as likely to break something thinking 
they were fixing something instead.

I'm looking into a number of open source analysis tools. I'll try to 
find some that give us fairly good results and indicate which areas of 
the code we should be paying extra attention to. If you have experience 
with any you'd like me to look at, please let me know.

Ray

P.S.: I'm not going to pass on a list of 4,400 problems without vetting 
it, so don't panic.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Freemind-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemind-developer

Reply via email to