Skip to content

Use golangci-lint to enforce linting and formatting rules #1

Use golangci-lint to enforce linting and formatting rules

Use golangci-lint to enforce linting and formatting rules #1

Triggered via pull request July 23, 2025 13:45
Status Failure
Total duration 32s
Artifacts

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
lint: aztec/highlevel.go#L62
QF1001: could apply De Morgan's law (staticcheck)
lint: aztec/encoder_test.go#L49
QF1004: could use strings.ReplaceAll instead (staticcheck)
lint: aztec/encoder_test.go#L21
QF1004: could use strings.ReplaceAll instead (staticcheck)
lint: aztec/encoder_test.go#L14
QF1003: could use tagged switch on r (staticcheck)
lint: aztec/encoder.go#L44
QF1003: could use tagged switch on (word & mask) (staticcheck)
lint: code39/encoder.go#L19
File is not properly formatted (gofmt)
lint: code128/encodingtable.go#L4
File is not properly formatted (gofmt)
lint: codabar/encoder.go#L13
File is not properly formatted (gofmt)
lint: qr/encoder_test.go#L131
Error return value of `png.Encode` is not checked (errcheck)
lint: qr/encoder_test.go#L121
Error return value of `f.Close` is not checked (errcheck)
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/barcode/barcode. Supported file pattern: go.sum