Skip to content

If struct or function is identical to package name #1

@cpustejovsky

Description

@cpustejovsky

sample output:

algorithms/sorting/sleep/sleep.go:7:1: consider changing "sleep.SleepSort" to "sleep.Sort"
algorithms/sorting/sum/sum.go:5:1: consider changing "sum.Sum" to "sum."

The first suggestion correctly spots the stutter and proposes a good solution.

for sum.Sum, it should either be ignored or given different advice.

Happy to do a PR to change that if we can decide what advice should be given.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions