Skip to content

Add Cel functions

Add Cel functions #9

Triggered via pull request July 14, 2023 11:07
@adityathebeadityathebe
synchronize #9
cel
Status Failure
Total duration 40s
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#L34
SA9003: empty branch (staticcheck)