chore: Enable modernize linter#7519
Merged
mholt merged 1 commit intocaddyserver:masterfrom Feb 26, 2026
Merged
Conversation
mholt
approved these changes
Feb 26, 2026
Member
mholt
left a comment
There was a problem hiding this comment.
Thanks, I'm skeptical of linters but given go fix is official, we can give this a shot.
Member
|
(CI failure is unrelated to this PR. Just means we should update a dependency.) |
vnxme
added a commit
to vnxme/caddy-l4
that referenced
this pull request
Mar 2, 2026
vnxme
added a commit
to mholt/caddy-l4
that referenced
this pull request
Mar 2, 2026
* chore: Nolint gosec G117 in modules/l4openvpn/matcher.go * chore: Nolint gosec G101 in modules/l4rdp/matcher.go * chore: Enable modernize linter (sync with caddyserver/caddy#7519)
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR enables
modernizelinter (has the same fixes as go fix) and fixes lint issues viagolangci-lint run --enable-only modernize --fix.Assistance Disclosure
No AI was used.