feat(fields): read/set all the fields from the given struct #140
Annotations
16 errors and 2 warnings
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):
fields/examples_test.go#L201
tests: ExampleReadJSON refers to unknown identifier: ReadJSON (govet)
|
lint (1.21):
fields/iterate_test.go#L82
test helper function should start from t.Helper() (thelper)
|
lint (1.21):
internal/reflect/iterate.go#L37
cognitive complexity 43 of func `IterateFields` is high (> 30) (gocognit)
|
lint (1.21):
internal/reflect/iterate.go#L69
`if set` has complex nested blocks (complexity: 5) (nestif)
|
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#L37
cognitive complexity 43 of func `IterateFields` is high (> 30) (gocognit)
|
lint (1.22):
internal/reflect/iterate.go#L69
`if 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):
fields/examples_test.go#L201
tests: ExampleReadJSON refers to unknown identifier: ReadJSON (govet)
|
lint (1.22):
fields/iterate_test.go#L82
test helper function should start from t.Helper() (thelper)
|
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.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/
|