Skip to content

feat: use otto for js templating #14

feat: use otto for js templating

feat: use otto for js templating #14

Triggered via pull request July 18, 2023 03:44
Status Failure
Total duration 28s
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: funcs/strings.go#L119
ST1016: methods on the same type should have the same receiver name (seen 4x "f", 5x "ns") (stylecheck)