fastruby / skunk

A SkunkScore Calculator for Ruby Code -- Find the most complicated code without test coverage!
https://www.fastruby.io/blog/code-quality/intruducing-skunk-stink-score-calculator.html
MIT License
511 stars 29 forks source link

Add ability to sort output results #116

Open fbuys opened 8 months ago

fbuys commented 8 months ago

IMPORTANT: please make sure you ask yourself all intro questions and fill all sections of the template.

Before we start...:

Branch/Commit:

Inform what branch/commit/version of "Skunk" you are using.

https://github.com/fastruby/skunk/commit/77bbd4e53bb88981956381f0bbb86b11971db046

Describe the feature:

Please include a detailed description of the feature you are requesting and any details on it’s expected behavior.

As an end user of skunk I generate a skunk report for an application And I see a skunk report sorted in ascending order of skunk scores

Problem:

Please include a detailed description of the problem this feature would solve.

As an end user of skunk I want to generate a skunk report in a different order, say in ascending order of churn_times_cost values So that I can a analyze my application from different perspectives and emphasizing different metrics

I will abide by the code of conduct

fbuys commented 8 months ago
  1. One solution would be to provide an option that sets the sorting order of the skunk report
  2. Another option would be to provide an option that sets the output format to something like CSV that can easily be imported into a spreadsheet application and then be sorted.