Skip to content
Tom Hombergs edited this page Oct 27, 2016 · 10 revisions

This page describes the analyzers that come with coderadar and the metrics they produce

Lines of Code Metrics

org.wickedsource.coderadar.analyzer.loc.LocAnalyzerPlugin

This analyzer produces lines of code metrics.

Metric name Description Aggregation
coderadar:size:loc:<LANGUAGE> Physical Lines of code including empty lines and comments. SUM
coderadar:size:sloc:<LANGUAGE> Lines of code without empty lines and comments SUM
coderadar:size:cloc:<LANGUAGE> Comment lines of code. SUM
coderadar:size:eloc:<LANGUAGE> Effective Lines of Code (SLOC without "header" and "footer" lines like single braces or import statements) SUM

Where LANGUAGE may be one of

  • java
  • xml
  • more to be added...

Checkstyle Violations

org.wickedsource.coderadar.analyzer.checkstyle.CheckstyleSourceCodeFileAnalyzerPlugin

This plugin runs Checkstyle over the source code files and creates metric values for each checkstyle violation. You can define which checkstyle violations to count by providing a checkstyle configuration file (see here). This configuration file should conform to checkstyles configuration file format.

All metrics produced by this analyzer plugin follow the naming convention "checkstyle:<VIOLATION_ID>" where VIOLATION_ID is the name of the violation that checkstyle uses.

Clone this wiki locally