Skip to content
New issue

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

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

Already on GitHub? # to your account

Add exportloopref linter #1163

Merged
merged 3 commits into from
May 24, 2020
Merged

Conversation

sayboras
Copy link
Member

Fixes #1041

@sayboras sayboras force-pushed the feature/exportloopref branch from 07c2097 to 8121e86 Compare May 23, 2020 11:32
Copy link
Contributor

@jirfag jirfag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool, thank you!

@@ -272,6 +272,9 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
linter.NewConfig(golinters.NewNestif()).
WithPresets(linter.PresetComplexity).
WithURL("https://github.com/nakabonne/nestif"),
linter.NewConfig(golinters.NewExportLoopRef()).
WithPresets(linter.PresetStyle).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't it bugs preset?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right, bugs present is more appropriate 💯

Copy link
Member

@ernado ernado left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address the comments, just two minor points

- Change to PresentBugs
- Update URL with https
@sayboras sayboras requested a review from ernado May 24, 2020 00:55
@jirfag jirfag merged commit dc260be into golangci:master May 24, 2020
@sayboras sayboras deleted the feature/exportloopref branch May 25, 2020 12:12
@ldez ldez added the linter: new Support new linter label Dec 7, 2020
@ldez ldez added this to the v1.28 milestone Mar 6, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
linter: new Support new linter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

update scopelint with looppointer or exportloopref
4 participants