Skip to content

Commit

Permalink
Remove deprecated linters and fix/ignore linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dhui committed Mar 9, 2023
1 parent 1d92b33 commit 043b59b
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
linters:
enable:
- golint
- interfacer
- revive
- unconvert
- dupl
- goconst
- gofmt
- misspell
- maligned
- unparam
- nakedret
- prealloc
Expand Down
1 change: 1 addition & 0 deletions satomictest/error.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package satomictest provides test helper function
package satomictest

import (
Expand Down
1 change: 1 addition & 0 deletions satomicx/querier.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package satomicx provides satomic capabilities that are compatible with sqlx
package satomicx

import (
Expand Down
1 change: 1 addition & 0 deletions savepointers/mock/mock.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package mock provides a mock Savepointer implementation
package mock

import (
Expand Down
1 change: 1 addition & 0 deletions savepointers/mssql/mssql.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package mssql implements a Savepointer for mssql
package mssql

import (
Expand Down
1 change: 1 addition & 0 deletions savepointers/mysql/mysql.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package mysql implements a Savepointer for mysql
package mysql

import (
Expand Down
1 change: 1 addition & 0 deletions savepointers/postgres/postgres.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package postgres implements a Savepointer for postgres
package postgres

import (
Expand Down
2 changes: 1 addition & 1 deletion savepointers/savepoint_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func init() {
if err != nil {
panic(err)
}
_rand = rand.New(dhrand.NewLockedSource(seed))
_rand = rand.New(dhrand.NewLockedSource(seed)) //nolint:gosec
}

// GenSavepointName quickly generates a unique savepoint name
Expand Down
1 change: 1 addition & 0 deletions savepointers/savepointer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package savepointers provides the Savepointer interface
package savepointers

// Savepointer provides an interface for creating SQL statements for managing savepoints
Expand Down
1 change: 1 addition & 0 deletions savepointers/savepointertest/savepointertest.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package savepointertest provides tests for Savepointer implementations
package savepointertest

import (
Expand Down
1 change: 1 addition & 0 deletions savepointers/sqlite/sqlite.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package sqlite implements a Savepointer for sqlite
package sqlite

import (
Expand Down

0 comments on commit 043b59b

Please sign in to comment.