Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add linting for any #2893

Merged
merged 2 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
linters-settings:
gofmt:
simplify: true
rewrite-rules:
- pattern: interface{}
replacement: any
misspell:
locale: US
gofumpt:
Expand Down
16 changes: 8 additions & 8 deletions server/store/datastore/migration/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,34 +22,34 @@

type xormigrateLogger struct{}

func (l *xormigrateLogger) Debug(v ...interface{}) {
func (l *xormigrateLogger) Debug(v ...any) {
log.Debug().Msg(fmt.Sprint(v...))

Check warning on line 26 in server/store/datastore/migration/logger.go

View check run for this annotation

Codecov / codecov/patch

server/store/datastore/migration/logger.go#L25-L26

Added lines #L25 - L26 were not covered by tests
}

func (l *xormigrateLogger) Debugf(format string, v ...interface{}) {
func (l *xormigrateLogger) Debugf(format string, v ...any) {
log.Debug().Msgf(format, v...)

Check warning on line 30 in server/store/datastore/migration/logger.go

View check run for this annotation

Codecov / codecov/patch

server/store/datastore/migration/logger.go#L29-L30

Added lines #L29 - L30 were not covered by tests
}

func (l *xormigrateLogger) Info(v ...interface{}) {
func (l *xormigrateLogger) Info(v ...any) {
log.Info().Msg(fmt.Sprint(v...))
}

func (l *xormigrateLogger) Infof(format string, v ...interface{}) {
func (l *xormigrateLogger) Infof(format string, v ...any) {
log.Info().Msgf(format, v...)

Check warning on line 38 in server/store/datastore/migration/logger.go

View check run for this annotation

Codecov / codecov/patch

server/store/datastore/migration/logger.go#L37-L38

Added lines #L37 - L38 were not covered by tests
}

func (l *xormigrateLogger) Warn(v ...interface{}) {
func (l *xormigrateLogger) Warn(v ...any) {
log.Warn().Msg(fmt.Sprint(v...))

Check warning on line 42 in server/store/datastore/migration/logger.go

View check run for this annotation

Codecov / codecov/patch

server/store/datastore/migration/logger.go#L41-L42

Added lines #L41 - L42 were not covered by tests
}

func (l *xormigrateLogger) Warnf(format string, v ...interface{}) {
func (l *xormigrateLogger) Warnf(format string, v ...any) {
log.Warn().Msgf(format, v...)

Check warning on line 46 in server/store/datastore/migration/logger.go

View check run for this annotation

Codecov / codecov/patch

server/store/datastore/migration/logger.go#L45-L46

Added lines #L45 - L46 were not covered by tests
}

func (l *xormigrateLogger) Error(v ...interface{}) {
func (l *xormigrateLogger) Error(v ...any) {
log.Error().Msg(fmt.Sprint(v...))

Check warning on line 50 in server/store/datastore/migration/logger.go

View check run for this annotation

Codecov / codecov/patch

server/store/datastore/migration/logger.go#L49-L50

Added lines #L49 - L50 were not covered by tests
}

func (l *xormigrateLogger) Errorf(format string, v ...interface{}) {
func (l *xormigrateLogger) Errorf(format string, v ...any) {
log.Error().Msgf(format, v...)

Check warning on line 54 in server/store/datastore/migration/logger.go

View check run for this annotation

Codecov / codecov/patch

server/store/datastore/migration/logger.go#L53-L54

Added lines #L53 - L54 were not covered by tests
}
Loading