hernanmd / DesignInfo

Collects package metrics (SLOC)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

Collects package metrics (SLOC) in Pharo Smalltalk >= 6.1

Screenshots

Sorted comparison of packages in Pharo 6.1

Comparison of packages in Pharo 6.1

Details

This is a port from SqueakSource code to Pharo >= 6.1

A DesignInfo collects the following information and metrics about the design of a package:

  • lines of code
  • lines of production code
  • lines of test code
  • percentage of production code
  • percentage of test code

It can create morphs that show a bar chart of the lines of code of all Monticello packages, sorted either by package name or by lines of code. The bar chart also shows the percentage of production versus test code. Balloon help is used to show detailed information about a package.

Ideas for enhancement

  • Allow combining production and test packages into one DesignInfo, e.g. Kernel and KernelTests
  • Support more metrics, e.g. public versus private methods, number of variables, package and class references
  • Separate UI into separate class
  • Allow changing the sort order in the lines of code morph

About

Collects package metrics (SLOC)

License:MIT License


Languages

Language:Smalltalk 99.6%Language:HTML 0.4%