Skip to content

"key-value pairs should not be used" check false positive #48

@AlekSi

Description

@AlekSi

I'm using sloglint 0.7.1 with golangci-lint 1.59.1.
My options are: no-mixed-args: true, kv-only: false, attr-only: true.

I have the following line of code:

l.LogAttrs(context.Background(), slog.LevelInfo, "Hello", fields...)

With the options above, it is reported as "key-value pairs should not be used". But LogAttrs accepts ...slog.Attr, not key-value pairs.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions