javaanalysissuite


Java Static Analysis Suite

A single ant task that will subject your code to junit, emma, findbugs, checkstyle, pmd, jDepend, TestabilityExplorer & javaNcss without all the fuss of setting up each of these tools.

More Information @ http://www.peterfranza.com/projects/janalysissuite-a-static-analysis-toolkit/

Usage: ```


        <performStaticAnalysis  todir="reports" basename="report_">
            <checkstyle/>
            <cpd/>
            <jdepend />
            <testabilityexplorer />
            <pmd/>
                    <javancss/>
            <findbugs />
            <emma filter="com.peterfranza.*"/>
            <JUnit />               
        </performStaticAnalysis>

```

The tools each support a set of configurable paramaters that can override the defaults

Checkstyle

|Parameter|Value| |:--------|:----| |config |path to file|

CPD

|Parameter|Value| |:--------|:----| |mintokens|integer| |maxmemory|integer|

Testability Explorer

|Parameter|Value| |:--------|:----| |fiter |package regex to remove|

PMD

|Parameter|Value| |:--------|:----| |rules |"rulesets/favorites.xml"|

Findbugs

|Parameter|Value| |:--------|:----| |maxmem |integer + size i.e. 64m| |timeout |integer| |effort |string| |excludes |path to file|

Emma

|Parameter|Value| |:--------|:----| |filter |package regex i.e. com.peterfranza.*|

JUnit

|Parameter|Value| |:--------|:----| |includes |file regex i.e. *``*/*.Test.java|

JavaNCss

|Parameter|Value| |:--------|:----| |level | 'package', 'object', 'function', 'all' (default: package)|