Skip to content

feat(fields): read/set all the fields from the given struct #144

feat(fields): read/set all the fields from the given struct

feat(fields): read/set all the fields from the given struct #144

Triggered via pull request October 1, 2024 22:38
Status Failure
Total duration 30s
Artifacts

golangci-lint.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

16 errors and 4 warnings
lint (1.21): internal/reflect/iterate.go#L67
cognitive complexity 55 of func `IterateFields` is high (> 30) (gocognit)
lint (1.21): internal/reflect/get_set.go#L216
internal/reflect/get_set.go:216: Line contains TODO/BUG/FIXME: "TODO use ReducedValueOf" (godox)
lint (1.21): internal/reflect/iterate.go#L149
internal/reflect/iterate.go:149: Line contains TODO/BUG/FIXME: "TODO find a better solution" (godox)
lint (1.21): internal/reflect/iterate.go#L107
`if result.set` has complex nested blocks (complexity: 5) (nestif)
lint (1.21): fields/examples_test.go#L217
declarations should never be cuddled (wsl)
lint (1.21): fields/iterate_test.go#L96
calculated cyclomatic complexity for function TestIterate is 21, max is 10 (cyclop)
lint (1.21): internal/reflect/get_set.go#L115
directive `//nolint:cyclop` is unused for linter "cyclop" (nolintlint)
lint (1.21)
issues found
lint (1.22): internal/reflect/iterate.go#L67
cognitive complexity 55 of func `IterateFields` is high (> 30) (gocognit)
lint (1.22): internal/reflect/get_set.go#L216
internal/reflect/get_set.go:216: Line contains TODO/BUG/FIXME: "TODO use ReducedValueOf" (godox)
lint (1.22): internal/reflect/iterate.go#L149
internal/reflect/iterate.go:149: Line contains TODO/BUG/FIXME: "TODO find a better solution" (godox)
lint (1.22): internal/reflect/iterate.go#L107
`if result.set` has complex nested blocks (complexity: 5) (nestif)
lint (1.22): fields/examples_test.go#L217
declarations should never be cuddled (wsl)
lint (1.22): fields/iterate_test.go#L96
calculated cyclomatic complexity for function TestIterate is 21, max is 10 (cyclop)
lint (1.22): internal/reflect/get_set.go#L115
directive `//nolint:cyclop` is unused for linter "cyclop" (nolintlint)
lint (1.22)
issues found
lint (1.21)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint (1.21): internal/reflect/common.go#L27
unexported-return: exported func ReducedValueOf returns unexported type reflect.kindChain, which can be annoying to use (revive)
lint (1.22)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint (1.22): internal/reflect/common.go#L27
unexported-return: exported func ReducedValueOf returns unexported type reflect.kindChain, which can be annoying to use (revive)