The metrics module is now an Open Source experimental
module for NetBeans. You can either browse its source code or
check it out of the NetBeans CVS repository with
"cvs checkout metrics". Please give it a try
and send us feedback.
The metrics panel (right-click on a directory or Java file and select
Tools->Metrics...),
Metric warnings (notice the red or yellow lights next to your
class and method nodes (not file nodes!),
Global metric thresholds in Options
Approval of out-of-bounds metric values (right-click on a class
or method node and select Tools->Approve metrics...). Each directory
with approved classes will have a MetricApprovals.xml file which can be
checked into your favorite version control system.
Dynamic loading of new metrics
What's coming
UI improvements (suggestions welcome!)
Metric nodes instead of metric properties (so out-of-bounds metrics can be visually flagged)
"New metric" wizard
Known Issues
23246: class files currently have to be in the same directory as source files, or metrics module ignores them
23224: method metrics warning lights are not reset after build
23862: "Metrics..." menu action may be enabled when there are no classes to evaluate