Skip to content

Commit

Permalink
Update lint config (#813)
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash authored Sep 1, 2024
1 parent 52d8823 commit 0f31249
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ linters:
- govet
- ineffassign
- staticcheck
- typecheck
- unused
- typecheck
# additional
- gofmt
- revive
- dogsled
- errorlint
- exhaustive
- exportloopref
- copyloopvar
- gocritic
#- goerr113
- misspell
- noctx
- rowserrcheck
- sqlclosecheck
#- err113

linters-settings:
revive:
Expand Down
1 change: 1 addition & 0 deletions pkg/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ func makeTLSConfig() *tls.Config {
}
tlsConfig := &tls.Config{
Certificates: certs,
MinVersion: tls.VersionTLS13,
}

return tlsConfig
Expand Down
2 changes: 1 addition & 1 deletion pkg/models/sql_translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func CopyFull(target interface{}, source interface{}) {
case field.Type == sourceField.Type:
// direct copy
targetFieldValue.Set(sourceFieldValue)
case reflect.PtrTo(field.Type) == sourceField.Type:
case reflect.PointerTo(field.Type) == sourceField.Type:
// source field is pointer, target field is value
// if nil, then set to zero value, otherwise copy
if sourceFieldValue.IsNil() {
Expand Down

0 comments on commit 0f31249

Please sign in to comment.