Skip to content

chore: Enable modernize linter#7519

Merged
mholt merged 1 commit intocaddyserver:masterfrom
alexandear-org:chore/modernize-lint
Feb 26, 2026
Merged

chore: Enable modernize linter#7519
mholt merged 1 commit intocaddyserver:masterfrom
alexandear-org:chore/modernize-lint

Conversation

@alexandear
Copy link
Contributor

This PR enables modernize linter (has the same fixes as go fix) and fixes lint issues via golangci-lint run --enable-only modernize --fix.

Assistance Disclosure

No AI was used.

Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

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

Thanks, I'm skeptical of linters but given go fix is official, we can give this a shot.

@mholt
Copy link
Member

mholt commented Feb 26, 2026

(CI failure is unrelated to this PR. Just means we should update a dependency.)

@mholt mholt merged commit 72eaf25 into caddyserver:master Feb 26, 2026
24 of 25 checks passed
@alexandear alexandear deleted the chore/modernize-lint branch February 26, 2026 22:28
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)
@github-actions github-actions bot mentioned this pull request Mar 6, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants