Skip to content

Add ability to sort output results #116

Description

@fbuys

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

Before we start...:

  • I checked the documentation and didn't find this feature
  • I checked to make sure that this feature has not already been requested

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.

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

Activity

fbuys commented on Jan 25, 2024

@fbuys
MemberAuthor
  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.

JuanVqz commented on May 19, 2025

@JuanVqz
Member

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.

Meenakshi7020 commented on Oct 9, 2025

@Meenakshi7020

I would like to work on this please assigned it to me

JuanVqz commented on Oct 9, 2025

@JuanVqz
Member

I would like to work on this please assigned it to me

@Meenakshi7020 go for it!

poonambhagaur61-tech commented on Sep 5, 2026

@poonambhagaur61-tech
Contributor

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!

JuanVqz commented on Sep 5, 2026

@JuanVqz
Member

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

@poonambhagaur61-tech
Contributor

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

@poonambhagaur61-tech
Contributor

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.

JuanVqz commented on Sep 22, 2026

@JuanVqz
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions