Skip to content

NGINX: Add nginx-go-crossplane rendering. #1842

NGINX: Add nginx-go-crossplane rendering.

NGINX: Add nginx-go-crossplane rendering. #1842

Triggered via pull request November 13, 2024 16:19
Status Failure
Total duration 1m 46s
Artifacts

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: internal/ingress/controller/template/crossplane/location.go#L439
string `off` has 3 occurrences, make it a constant (goconst)
lint: internal/ingress/controller/template/crossplane/cors.go#L26
hugeParam: locationcors is heavy (96 bytes); consider passing it by pointer (gocritic)
lint: internal/ingress/controller/template/crossplane/cors.go#L46
hugeParam: cfg is heavy (96 bytes); consider passing it by pointer (gocritic)
lint: internal/ingress/controller/template/crossplane/http.go#L143
appendCombine: can combine chain of 4 appends into one (gocritic)
lint: internal/ingress/controller/template/crossplane/http.go#L348
appendCombine: can combine chain of 2 appends into one (gocritic)
lint: internal/ingress/controller/template/crossplane/http.go#L296
rangeValCopy: each iteration copies 192 bytes (consider pointers or indexing) (gocritic)
lint: internal/ingress/controller/template/crossplane/http.go#L88
whyNoLint: include an explanation for nolint directive (gocritic)
lint: internal/ingress/controller/template/crossplane/location.go#L689
appendCombine: can combine chain of 2 appends into one (gocritic)
lint: internal/ingress/controller/template/crossplane/utils.go#L216
hugeParam: tc is heavy (2624 bytes); consider passing it by pointer (gocritic)
lint: internal/ingress/controller/template/crossplane/utils.go#L65
paramTypeCombine: func(directive string, comment string, args ...any) *ngx_crossplane.Directive could be replaced with func(directive, comment string, args ...any) *ngx_crossplane.Directive (gocritic)