Repository navigation
Add ability to sort output results #116
Description
Activity
- One solution would be to provide an option that sets the sorting order of the skunk report
- 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.
Hello, I am curious to help out at some point. Just to clarify are you requesting that it is the files with their associated score that you want to be in ascending order or some other column?
I'm not sure what the expected behaviour of this feature request is, but what I would do since Skunk is a RubyCritic extension is extend/replicate/mimic/follow the html report from them to Skunk because it supports sorting... this is on my to-do list, but if you want to contribute, that would be awesome.
I would like to work on this please assigned it to me
I would like to work on this please assigned it to me
@Meenakshi7020 go for it!
poonambhagaur61-tech commented on Sep 5, 2026
Hi! This is my first open-source contribution. Could you please assign this issue to me? It would really help me gain valuable experience. Thank you!
Hi! This is my first open-source contribution. Could you please assign this issue to me? It would really help me gain valuable experience. Thank you!
All yours
poonambhagaur61-tech commented on Sep 12, 2026
Hi @JuanVqz, the PR is ready for review. The HTML report now supports sorting by all table columns in ascending and descending order.
poonambhagaur61-tech commented on Sep 15, 2026
Thanks for the feedback. I updated the report to show the initial sort direction. Since the report starts sorted by Skunk Score in descending order, the Skunk Score column now displays the descending arrow initially. The other columns remain neutral until selected. I also kept the numeric and alphabetical sorting behavior as before.
Heads up: #142 adds sorting to the HTML report (skunk_overview.html) only, so this issue will be closed when it merges. The console and JSON reports keep their current order (Skunk Score, descending). If you'd like sorting for those formats, please open a new issue.
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.
77bbd4e
Describe the feature:
Please include a detailed description of the feature you are requesting and any details on it’s expected behavior.
Problem:
Please include a detailed description of the problem this feature would solve.
I will abide by the code of conduct