-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add exportloopref linter #1163
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
Add exportloopref linter #1163
Conversation
07c2097
to
8121e86
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, thank you!
pkg/lint/lintersdb/manager.go
Outdated
@@ -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). |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 💯
There was a problem hiding this 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
Fixes #1041