Skip to content

dev: simplify GetAllSupportedLinterConfigs method #3901

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 3 commits into from
Jun 13, 2023

Conversation

ldez
Copy link
Member

@ldez ldez commented Jun 12, 2023

  • add WithEnabledByDefault method to set EnabledByDefault
  • remove enableLinterConfigs and enabledByDefault := map[string]bool{...}. This was introduced because of GolangCI (the SAAS version of golangci-lint). The PR which introduced this code is here: Feature/golangci com support #2. Now that SAAS is dead, we can make it simpler.
  • use the fluent syntax (as the other linter) for the linter related to plugins.

@ldez ldez added the topic: cleanup Related to code, process, or doc cleanup label Jun 12, 2023
@ldez ldez requested a review from bombsimon June 12, 2023 12:03
Copy link
Member

@bombsimon bombsimon left a comment

Choose a reason for hiding this comment

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

LGTM!

Just a personal pref. about naming so approving if you still don't agree

@ldez ldez merged commit 12e220b into golangci:master Jun 13, 2023
@ldez ldez deleted the fix/simplify-GetAllSupportedLinterConfigs branch June 13, 2023 21:44
@ldez ldez added this to the v1.53 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: cleanup Related to code, process, or doc cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants