rrrene / inch_ex

Provides a Mix task that gives you hints where to improve your inline docs.
MIT License
208 stars 71 forks source link

Output raw numbers #86

Closed tshakah closed 4 years ago

tshakah commented 4 years ago

This shows the numbers that make up the distribution, and also changes the distribution order to match the Inch web UI/CLI badge generator.

rrrene commented 4 years ago

Thx for creating a pull request. Unfortunately, I won't be able to merge this as it does alter a significant portion of the tool without any benefit.

You can get the same information with InchEx 2.0.0 by parsing the JSON output from mix inch --format json. As a convenience, InchEx 2.1.0-rc.1 now also lists the grade distribution:

$ mix inch --format json | head
{
  "grade_distribution": {
    "A": 16,
    "B": 9,
    "C": 3,
    "U": 69
  },
  "results": [
    {
      "doc": null,

:+1: