Skip to content

Sorting issues  #1217

Closed
Closed
@butuzov

Description

Is your feature request related to a problem? Please describe.
It would be great to have sorted results by file/line/column. In case of similar checks, we can track issue as a group (see similarities in unused and deadcode example ), in case of different issues its can be useful to see what else linter found on/around same lines.

Describe the solution you'd like
Implement sort flag into the output config structure.

Additional context

Here is an example of the output without sorting (it's a little bit cut, but you got the idea).

main.go:19:6: `deadcode` is unused (deadcode)
main.go:10:2: S1021: should merge variable declaration with assignment on next line (gosimple)
main.go:19:6: func `deadcode` is unused (unused)

Here is an example of the output with sorting.

main.go:10:2: S1021: should merge variable declaration with assignment on next line (gosimple)
main.go:19:6: `deadcode` is unused (deadcode)
main.go:19:6: func `deadcode` is unused (unused)

Activity

boring-cyborg

boring-cyborg commented on Jul 7, 2020

@boring-cyborg

Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.

butuzov

butuzov commented on Jul 7, 2020

@butuzov
MemberAuthor

If everything OK, I can add documentation and examples (once figure out how to do that).

added a commit that references this issue on Jul 12, 2020

53 remaining items

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

Metadata

Assignees

No one assigned

    Labels

    area: outputRelated to issue outputenhancementNew feature or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Sorting issues · Issue #1217 · golangci/golangci-lint