Skip to content

Add dogsled linter #705

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

Merged
merged 1 commit into from
Sep 17, 2019
Merged

Add dogsled linter #705

merged 1 commit into from
Sep 17, 2019

Conversation

tpounds
Copy link
Contributor

@tpounds tpounds commented Sep 16, 2019

Adds https://github.com/alexkohler/dogsled linter to detect assignments with too many blank identifiers.

e.g. x, _, _, _, := f()

The logic was ported similar to what was done for nakedret and prealloc since the upstream source cannot be integrated directly.

@jirfag jirfag merged commit 92168d0 into golangci:master Sep 17, 2019
@jirfag
Copy link
Contributor

jirfag commented Sep 17, 2019

great, thank you!

@tpounds tpounds deleted the add-dogsled branch September 17, 2019 13:49
@ldez ldez added the linter: new Support new linter label Dec 7, 2020
@ldez ldez added this to the v1.19 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linter: new Support new linter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants