From 29800c488955f57c0fd52a9463b9ccf0b7473c4c Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Tue, 10 Feb 2026 11:08:13 -0300 Subject: [PATCH] chore(taskfile): add `modernize` task --- Taskfile.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Taskfile.yaml b/Taskfile.yaml index b14a0fc558948d2991709fad4b2dd2a32dfa8cd4..b977ba93af2920c3f401f6c362ddb26161887ec4 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -88,6 +88,11 @@ tasks: cmds: - prettier --write internal/cmd/stats/index.html internal/cmd/stats/index.css internal/cmd/stats/index.js + modernize: + desc: Run modernize + cmds: + - go run golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest -fix -test ./... + dev: desc: Run with profiling enabled env: