This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Add SLOC metric | ||
---|---|---|---|
Product: | obsolete | Reporter: | nczempin <nczempin> |
Component: | metrics | Assignee: | _ tball <tball> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | ||
Priority: | P4 | ||
Version: | 3.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | 24246, 24247 | ||
Bug Blocks: |
Description
nczempin
2002-05-30 12:53:51 UTC
<i>Also, the current metrics depend solely on analyzing the byte code. SLOC would require decoupling the analysis from class files.</i> That's only true if you want a total line count of the source file. One can count the number of lines containing source that actually translate into code by counting the number of line number entries in the classfile. I'd like to create this as an example module showing how to extend the metrics module. The metrics module now has the ability for developers to easily create and plug-in new metrics without having to modify the metrics module itself. Check out the metrics/examples directory for an example metric you can use to create this metric. |