Maintenance: add more linters to .golangci.yml

This commit is contained in:
Quentin McGaw (desktop)
2021-05-30 03:09:22 +00:00
parent f1b5341f33
commit 82d98c4859
3 changed files with 10 additions and 4 deletions

View File

@@ -37,27 +37,30 @@ linters:
- godot
- goheader
- goimports
- golint
- gomnd
- goprintffuncname
- gosec
# - goerr113
- gosimple
- govet
- importas
- ineffassign
- interfacer
- lll
- maligned
- misspell
- nakedret
- nestif
- nilerr
- noctx
- nolintlint
- prealloc
- predeclared
- rowserrcheck
- scopelint
- exportloopref
- sqlclosecheck
- staticcheck
- structcheck
- thelper
- tparallel
- typecheck
- unconvert
- unparam

View File

@@ -12,6 +12,7 @@ import (
)
func digestServerModelVersion(t *testing.T, server interface{}, version uint16) string {
t.Helper()
bytes, err := json.Marshal(server)
if err != nil {
t.Fatal(err)
@@ -118,6 +119,7 @@ func Test_versions(t *testing.T) {
}
func digestServersTimestamp(t *testing.T, servers interface{}, timestamp int64) string {
t.Helper()
bytes, err := json.Marshal(servers)
if err != nil {
t.Fatal(err)

View File

@@ -28,6 +28,7 @@ func Test_FilterByPossibilities(t *testing.T) {
for name, testCase := range testCases {
testCase := testCase
t.Run(name, func(t *testing.T) {
t.Parallel()
filtered := FilterByPossibilities(testCase.value, testCase.possibilities)
assert.Equal(t, testCase.filtered, filtered)
})