Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting strategies for listen.Response #152

Open
leodido opened this issue Mar 15, 2023 · 0 comments
Open

Sorting strategies for listen.Response #152

leodido opened this issue Mar 15, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@leodido
Copy link
Member

leodido commented Mar 15, 2023

Describe the feature or problem you’d like to solve

Currently, all the 3 child commands return listen.Response, which is basically a []listen.Package.

The output order is not guaranteed because there is no sorting involved, at the moment.

Proposed solution

I propose making listen.Response sortable. With different strategies.

Top of my mind:

  • sort packages by the number of verdicts
  • sort packages by the severity of verdicts
  • sort packages by dependency set type (eg., "peerDependency", "devDependency")

Additional context

NONE

@leodido leodido added the enhancement New feature or request label Mar 15, 2023
@leodido leodido self-assigned this Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant