Skip to content

Commit

Permalink
.golangci.yml: remove deprecated linters
Browse files Browse the repository at this point in the history
Remove deprecated linters from .golangci.yml, ensuring that their
replacements are present. Fix any new lint issues resulting from the
same.

Signed-off-by: Sergei Trofimov <[email protected]>
  • Loading branch information
setrofim committed Nov 14, 2023
1 parent 5a0612a commit 1bdfefa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
12 changes: 4 additions & 8 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ linters-settings:
- octalLiteral
- paramTypeCombine
- whyNoLint
- wrapperFunc
- wrapperFunc
gofmt:
simplify: false
simplify: false
goimports:
golint:
min-confidence: 0
Expand All @@ -40,24 +40,20 @@ linters-settings:
linters:
disable-all: true
enable:
- deadcode
- errcheck
- goconst
- gocyclo
- gofmt
- goimports
- golint
- gosec
- govet
- ineffassign
- maligned
- misspell
- revive
- staticcheck
- structcheck
- typecheck
- unconvert
- unused
- varcheck


issues:
Expand All @@ -72,7 +68,7 @@ issues:
- goconst
- dupl
- gomnd
- lll
- lll
- path: doc\.go
linters:
- goimports
Expand Down
4 changes: 2 additions & 2 deletions comid/measurement_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ func TestMeasurement_NewUUIDMeasurement_bad_uuid(t *testing.T) {
}

var (
testMKeyUintMin uint64 = 0
testMKeyUintMax uint64 = ^uint64(0)
testMKeyUintMin uint64
testMKeyUintMax = ^uint64(0)
)

func TestMkey_Valid_no_value(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion comid/test_vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func MustHexDecode(t *testing.T, s string) []byte {
}

func b64TestImplID() string {
var implID []byte = TestImplID[:]
var implID = TestImplID[:]

return base64.StdEncoding.EncodeToString(implID)
}
Expand Down

0 comments on commit 1bdfefa

Please sign in to comment.