Add a couple more linters (#3886)
Lint for kv-pairs in log calls and things that can be replaced with constants from the standard library Also add the linters that are enabled by default just so things are more consistent and clear going forward --- #### Does this PR need a docs update or release note? - [ ] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [x] ⛔ No #### Type of change - [ ] 🌻 Feature - [ ] 🐛 Bugfix - [ ] 🗺️ Documentation - [x] 🤖 Supportability/Tests - [x] 💻 CI/Deployment - [ ] 🧹 Tech Debt/Cleanup #### Issue(s) * #3654 #### Test Plan - [x] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
This commit is contained in:
parent
6880064c64
commit
c073ccc5ea
@ -3,14 +3,20 @@ run:
|
||||
|
||||
linters:
|
||||
enable:
|
||||
- errcheck
|
||||
- forbidigo
|
||||
- gci
|
||||
- gofmt
|
||||
- gofumpt
|
||||
- errcheck
|
||||
- forbidigo
|
||||
- gosimple
|
||||
- govet
|
||||
- ineffassign
|
||||
- lll
|
||||
- loggercheck
|
||||
- misspell
|
||||
- revive
|
||||
- unused
|
||||
- usestdlibvars
|
||||
- wsl
|
||||
|
||||
disable:
|
||||
|
||||
@ -93,7 +93,7 @@ func (suite *HTTPWrapperUnitSuite) TestNewHTTPWrapper_redirectMiddleware() {
|
||||
hdr.Set("Location", "localhost:99999999/smarfs")
|
||||
|
||||
toResp := &http.Response{
|
||||
StatusCode: 302,
|
||||
StatusCode: http.StatusFound,
|
||||
Header: hdr,
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user