Skip to content

feat: use otto for js templating #11

feat: use otto for js templating

feat: use otto for js templating #11

Triggered via pull request July 17, 2023 08:49
Status Failure
Total duration 1m 8s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: strings/duration.go#L297
cognitive complexity 56 of func `parseDuration` is high (> 30) (gocognit)
lint: strings/bytes.go#L89
assignOp: replace `value = value / EXABYTE` with `value /= EXABYTE` (gocritic)
lint: strings/bytes.go#L98
assignOp: replace `value = value / GIGABYTE` with `value /= GIGABYTE` (gocritic)
lint: strings/bytes.go#L104
assignOp: replace `value = value / KILOBYTE` with `value /= KILOBYTE` (gocritic)
lint: strings/bytes.go#L101
assignOp: replace `value = value / MEGABYTE` with `value /= MEGABYTE` (gocritic)
lint: strings/bytes.go#L92
assignOp: replace `value = value / PETABYTE` with `value /= PETABYTE` (gocritic)
lint: strings/bytes.go#L95
assignOp: replace `value = value / TERABYTE` with `value /= TERABYTE` (gocritic)
lint: strings/duration.go#L41
ifElseChain: rewrite if-else to switch statement (gocritic)
lint: strings/duration.go#L410
unnecessary conversion (unconvert)
lint: template.go#L36
cognitive complexity 32 of func `RunTemplate` is high (> 30) (gocognit)