ECOM-12329 fix: lint errors #70
Annotations
10 errors and 1 warning
test:
domain/redirectdefinition/utils/autocreateredirectdefinitions_test.go#L216
216-306 lines are duplicate of `domain/redirectdefinition/utils/autocreateredirectdefinitions_test.go:400-490` (dupl)
|
test:
domain/redirectdefinition/utils/autocreateredirectdefinitions_test.go#L400
400-490 lines are duplicate of `domain/redirectdefinition/utils/autocreateredirectdefinitions_test.go:216-306` (dupl)
|
test:
domain/redirectdefinition/command/createredirect.go#L1
1-69 lines are duplicate of `domain/redirectdefinition/command/updateredirect.go:1-69` (dupl)
|
test:
domain/redirectdefinition/command/updateredirect.go#L1
1-69 lines are duplicate of `domain/redirectdefinition/command/createredirect.go:1-69` (dupl)
|
test:
domain/redirectdefinition/command/createredirect.go#L35
35-52 lines are duplicate of `domain/redirectdefinition/command/createredirectsfromcontentserver.go:57-74` (dupl)
|
test:
domain/redirectdefinition/command/createredirectsfromcontentserver.go#L57
57-74 lines are duplicate of `domain/redirectdefinition/command/deleteredirect.go:35-52` (dupl)
|
test:
domain/redirectdefinition/command/deleteredirect.go#L35
35-52 lines are duplicate of `domain/redirectdefinition/command/updateredirect.go:35-52` (dupl)
|
test:
domain/redirectdefinition/command/updateredirect.go#L35
35-52 lines are duplicate of `domain/redirectdefinition/command/createredirect.go:35-52` (dupl)
|
test:
domain/redirectdefinition/repository/redirectdefinition.go#L142
Consider pre-allocating `operations` (prealloc)
|
test:
pkg/provider/redirectsprovider.go#L209
(*RedirectsProvider).execMatcherFuncs - result 1 (error) is always nil (unparam)
|
test
The following actions use a deprecated Node.js version and will be forced to run on node20: 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/
|