Skip to content

dev: review config path usage inside gocritic #4517

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 2 commits into from
Mar 15, 2024

Conversation

ldez
Copy link
Member

@ldez ldez commented Mar 15, 2024

Since the previous refactor of the commands, the configuration is fully loaded before the build of the linters, so we don't need a closure.

The configuration is inside the linter context, we can use it instead of passing it as a parameter.

ldez added 2 commits March 15, 2024 20:02
Since the previous refactor of the commands,
the configuration is fully loaded before the build of the linters.
The configuration is inside the linter context then we can use it.
@ldez ldez added topic: cleanup Related to code, process, or doc cleanup linter: update Update the linter implementation inside golangci-lint labels Mar 15, 2024
@ldez ldez added this to the next milestone Mar 15, 2024
@ldez ldez requested a review from Antonboom March 15, 2024 19:08
Copy link
Contributor

@Antonboom Antonboom left a comment

Choose a reason for hiding this comment

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

🔥

@ldez ldez merged commit 013a296 into golangci:master Mar 15, 2024
@ldez ldez deleted the fix/gocritic-config-path branch March 15, 2024 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linter: update Update the linter implementation inside golangci-lint topic: cleanup Related to code, process, or doc cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants