-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Description
Feature request
golangci-lint which we have configured supports additional helpful linters that we are not using.
This FR suggests that we uplevel our technical hygiene by enabling more linters and cleaning up
the issues they identify.
Note: I'd like to see the same linter suite applied across all tektoncd repos.
Documentation: https://golangci-lint.run/usage/linters
See also: http://goo.gle/go-style
Linters that I would like to see enabled:
- bodyclose - Enabled additional linters. #5924
- containedctx - Hygiene: enable
containedctxlinter. #6261 - decorder - Enabled additional linters. #5924
- depguard
- dogsled - Hygiene: enable
goconst,dogsledlinters. #6262 - dupl
- dupword - Enabled
dupwordandusestdlibvarslinters. #5918 - errcheck
- errchkjson - Hygiene: enable linters for error conventions. #6264
- errname - Hygiene: enable linters for error conventions. #6264
- errorlint - Hygiene: enable
errorlint. #6340 - exhaustive -- Hygiene: enable
exhaustivelinter. #6484 - funlen
- gocognit
- goconst - Hygiene: enable
goconst,dogsledlinters. #6262 - gocritic
- gofmt
- goimports
- gomodguard
- gosec
- gosimple -- Enabled
gosimplelinter. #5904 - govet
- ineffassign -- Hygiene: enable
ineffassignlinter. 🧹🧹🧹 #6259 - ireturn
- misspell
-
nosnakecase(deprecated) - revive
- staticcheck
- thelper -- Enabled
thelperlinter. #5927 - tparallel
- typecheck -- Enabled additional linters. #5924
- unconvert
- unparam
- unused -- Replaced
deadcodelinter withunusedlinter. #5881 - usestdlibvars -- Enabled
dupwordandusestdlibvarslinters. #5918 - varnamelen
- whitespace -- Enabled the
whitespacelinter. #5889 - wrapcheck
chuangw6
Metadata
Metadata
Assignees
Labels
help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Type
Projects
Status
Done