Skip to content

chore: Enable modernize linter for already applied analyzers - #19750

Open
SungJin1212 wants to merge 2 commits into
influxdata:masterfrom
SungJin1212:modernize/enable-any-linter
Open

SungJin1212 wants to merge 2 commits into
influxdata:masterfrom
SungJin1212:modernize/enable-any-linter

Conversation

@SungJin1212

@SungJin1212 SungJin1212 commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Enable the modernize linter in golangci-lint, keeping only the analyzers whose rewrites are already merged (any, newexpr, rangeint, forvar, the slices and strings helpers) and disabling the rest.

TODO: Enable whole checkings after all remaining PRs merged

Checklist

Related issues

resolves #

Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
@telegraf-tiger telegraf-tiger Bot added the chore label Sep 21, 2026
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
@telegraf-tiger

Copy link
Copy Markdown
Contributor

Download PR build artifacts for linux_amd64.tar.gz, darwin_arm64.tar.gz, and windows_amd64.zip.
Downloads for additional architectures and packages are available below.

⚠️ This pull request increases the Telegraf binary size by 6.33 % for linux amd64 (new size: 327.7 MB, nightly size 308.2 MB)

📦 Click here to get additional PR build artifacts

Artifact URLs

. DEB . RPM . TAR . GZ . ZIP
amd64.deb aarch64.rpm darwin_amd64.tar.gz windows_amd64.zip
arm64.deb armel.rpm darwin_arm64.tar.gz windows_arm64.zip
armel.deb armv6hl.rpm freebsd_amd64.tar.gz windows_i386.zip
armhf.deb i386.rpm freebsd_armv7.tar.gz
i386.deb ppc64le.rpm freebsd_i386.tar.gz
mips.deb riscv64.rpm linux_amd64.tar.gz
mipsel.deb s390x.rpm linux_arm64.tar.gz
ppc64el.deb x86_64.rpm linux_armel.tar.gz
riscv64.deb linux_armhf.tar.gz
s390x.deb linux_i386.tar.gz
linux_mips.tar.gz
linux_mipsel.tar.gz
linux_ppc64le.tar.gz
linux_riscv64.tar.gz
linux_s390x.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant