Skip to content

copy list of linters from prometheus/prometheus #345

copy list of linters from prometheus/prometheus

copy list of linters from prometheus/prometheus #345

Triggered via push August 18, 2024 19:13
Status Failure
Total duration 31s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: pkg/mapper/fsm/formatter.go#L49
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(valueFormatter, match[0], "", -1)` (gocritic)
lint: pkg/mapper/fsm/formatter.go#L51
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(valueFormatter, match[0], "%s", -1)` (gocritic)
lint: pkg/mapper/fsm/fsm.go#L59
underef: could simplify (*state).transitions to state.transitions (gocritic)
lint: pkg/mapper/fsm/fsm.go#L97
underef: could simplify (*state).transitions to state.transitions (gocritic)
lint: pkg/mapper/fsm/fsm.go#L98
underef: could simplify (*state).maxRemainingLength to state.maxRemainingLength (gocritic)
lint: pkg/mapper/fsm/fsm.go#L99
underef: could simplify (*state).minRemainingLength to state.minRemainingLength (gocritic)
lint: pkg/mapper/fsm/fsm.go#L106
underef: could simplify (*state).maxRemainingLength to state.maxRemainingLength (gocritic)
lint: pkg/mapper/fsm/fsm.go#L107
underef: could simplify (*state).minRemainingLength to state.minRemainingLength (gocritic)
lint: pkg/mapper/fsm/fsm.go#L249
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(mapping, ".", "\\.", -1)` (gocritic)
lint: pkg/mapper/fsm/fsm.go#L250
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(metricRe, "*", "([^.]*)", -1)` (gocritic)