Lint with golangci-lint and modernize, run from a Taskfile #5
Loading…
Reference in a new issue
No description provided.
Delete branch "lint-newexpr"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
intp,floatpandboolpare gone: since Go 1.26newtakes an expression. The float bounds arenew(1.0), sincenew(1)is*int. modernize also flaggederrors.Asinerrors.go, which is nowerrors.AsType.Evidence
golangci-lint run ./...onmainunder this config reports 9 issues, all modernize (newexpr,errorsastype)After:
task lintreports 0 issues,task testpassesMerge Danger
Door: two-way
Blast Radius: CI
This pull request's own checks are the first run of both new CI steps in this repository. The
maketargets are gone with the Makefile.