Skip to content

Commit 7ebcd1a

Browse files
committed
PMM-13602 fix linters.
1 parent 9bd6ac6 commit 7ebcd1a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.golangci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ linters:
3232
- unused
3333
- testpackage
3434
- wsl
35-
- exhaustivestruct
35+
- exhaustruct
3636
- varnamelen
37+
- gochecknoglobals # we need globals for better performance, we use them for mapping, and we don't manipulate them, so it's safe.
3738
- maligned #deprecated
3839
- scopelint #deprecated
3940
- golint #deprecated

exporter/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ func metricRenameAndLabel(rm *rawMetric, convs []conversion) []*rawMetric {
435435

436436
// specialConversions returns a list of special conversions we want to implement.
437437
// See: https://jira.percona.com/browse/PMM-6506
438-
var specialConversions = []conversion{
438+
var specialConversions = []conversion{ //nolint:gochecknoglobals
439439
{
440440
oldName: "mongodb_ss_opLatencies_ops",
441441
prefix: "mongodb_ss_opLatencies",

0 commit comments

Comments
 (0)