maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Walding <...@walding.com>
Subject FindBugs plugin
Date Sat, 30 Aug 2003 01:14:32 GMT
I committed a FindBugs report plugin yesterday.  Basically it is a 
static class file checker that analyzes your class files for well known 
bug patterns.

For instance, here are the results from running it against Maven

M UCF: Useless control flow in 
org.apache.maven.DefaultProjectUnmarshaller.parse(java.io.Reader)  At 
DefaultProjectUnmarshaller.java:[line 679]
M DE: org.apache.maven.MavenUtils.loadProperties(java.io.InputStream) 
might ignore java.io.IOException  At MavenUtils.java:[line 916]
M UuF: Unused field: org.apache.maven.T.de
M UrF: Unread field: org.apache.maven.cli.App.consoleErr
M UrF: Unread field: org.apache.maven.jelly.tags.jeez.JeezTagLibrary.log
M DE: org.apache.maven.repository.AbstractArtifact.verify() might ignore 
java.lang.Exception  At AbstractArtifact.java:[line 213]
M DE: 
org.apache.maven.util.Expand.extractFile(java.io.InputStream,String,java.util.Date,boolean)

might ignore java.io.IOException  At Expand.java:[line 207]
M DE: 
org.apache.maven.util.HttpUtils.getFile(String,java.io.File,boolean,boolean,String,String,String,String)

might ignore java.lang.Exception  At HttpUtils.java:[line 249]
M DE: 
org.apache.maven.util.HttpUtils.getFile(String,java.io.File,boolean,boolean,String,String,String,String,boolean)

might ignore java.lang.Exception  At HttpUtils.java:[line 173]
M OS: org.apache.maven.util.MD5Sum.getBytes(java.io.File) may fail to 
close stream  At MD5Sum.java:[line171]

Ultimately it will be prettied up, but the XML output from FindBugs is 
not currently easy enough to use.

Cheers,

Ben


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message