feat(fields): read/set all the fields from the given struct #136
Annotations
10 errors and 1 warning
internal/reflect/iterate.go#L37
cognitive complexity 43 of func `IterateFields` is high (> 30) (gocognit)
|
internal/reflect/iterate.go#L69
`if set` has complex nested blocks (complexity: 5) (nestif)
|
fields/examples_test.go#L217
declarations should never be cuddled (wsl)
|
fields/iterate_test.go#L96
calculated cyclomatic complexity for function TestIterate is 21, max is 10 (cyclop)
|
fields/examples_test.go#L201
tests: ExampleReadJSON refers to unknown identifier: ReadJSON (govet)
|
internal/reflect/iterate.go#L122
valueFromField returns interface (interface{}) (ireturn)
|
fields/iterate.go#L163
trySetValue returns interface (interface{}) (ireturn)
|
fields/iterate_test.go#L82
test helper function should start from t.Helper() (thelper)
|
internal/reflect/get_set.go#L115
directive `//nolint:cyclop` is unused for linter "cyclop" (nolintlint)
|
|
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/
|
This job failed
Loading