Skip to content
Static code analysis and metrics based on concepts from Clean Code
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
README.md
pom.xml
spring-parameter-per-method-sample.png

README.md

Metrilyzer

This is a static code analysis tool based on the Spoon library. It can be used to read any Java project and produce data for the following metrics:

  • LINES_PER_CLASS
  • LINES_PER_METHOD
  • PARAMETER_PER_METHOD
  • COMMENTS_PER_CLASS
  • CLASS_PER_PACKAGE
  • METHODS_PER_CLASSES

Sample

Here you can see a sample metric (Parameter per method) for the Spring Boot project as a Histogram. spring-parameter-per-method-sample

Getting started

To get started with this project take a look at MetrilyzerSampleRunner or MetrilyzerTest. If you don't get further don't hesitate to ask me :)

Ideas

  • NESTING_DEPTH
  • OUTPUT_ARGUMENTS
  • IF/ELSE_POLYMORPHISM
  • TESTCODE_METRICS
  • SOM_DATANALYSIS

Blogpost

You can read about this project and it's possibilities here: https://craftcodecrew.com/clean-code-the-hard-facts-and-figures/

You can’t perform that action at this time.