Skip to content

Use strings.ReplaceAll() rather than strings.Replace() with -1 #59

Use strings.ReplaceAll() rather than strings.Replace() with -1

Use strings.ReplaceAll() rather than strings.Replace() with -1 #59

Triggered via pull request November 17, 2023 07:19
@YannigYannig
closed #376
Status Failure
Total duration 4m 38s
Artifacts 2

release.yml

on: pull_request_target
Matrix: deploy
Fit to window
Zoom out
Zoom in

Annotations

11 errors
build: collector/collector.go#L253
Error return value of `(github.com/go-kit/log.Logger).Log` is not checked (errcheck)
build: collector/collector.go#L256
Error return value of `(github.com/go-kit/log.Logger).Log` is not checked (errcheck)
build: collector/collector.go#L262
Error return value of `(github.com/go-kit/log.Logger).Log` is not checked (errcheck)
build: main.go#L79
Error return value of `w.Write` is not checked (errcheck)
build: collector/collector.go#L408
cognitive complexity 63 of func `(*Exporter).scrapeGenericValues` is high (> 30) (gocognit)
build: collector/collector.go#L239
cognitive complexity 34 of func `(*Exporter).scrape` is high (> 30) (gocognit)
build: collector/collector.go#L423
string `,metricHelp=` has 7 occurrences, make it a constant (goconst)
build: collector/collector.go#L304
string `histogram` has 3 occurrences, make it a constant (goconst)
build: collector/collector.go#L278
File is not `gofumpt`-ed with `-extra` (gofumpt)
build: collector/collector.go#L409
File is not `gofumpt`-ed with `-extra` (gofumpt)
deploy-[ubuntu]
Process completed with exit code 2.

Artifacts

Produced during runtime
Name Size
application Expired
5.09 MB
test-coverage Expired
10 Bytes