add init api methode for create redirects #20
Annotations
10 errors and 10 warnings
domain/redirectdefinition/autocreateredirectdefinitions_test.go#L105
105-190 lines are duplicate of `domain/redirectdefinition/autocreateredirectdefinitions_test.go:279-364` (dupl)
|
domain/redirectdefinition/autocreateredirectdefinitions_test.go#L279
279-364 lines are duplicate of `domain/redirectdefinition/autocreateredirectdefinitions_test.go:105-190` (dupl)
|
domain/redirectdefinition/command/createredirectsfromcontentserver.go#L31
commentFormatting: put a space between `//` and comment text (gocritic)
|
domain/redirectdefinition/api.go#L15
commentFormatting: put a space between `//` and comment text (gocritic)
|
domain/redirectdefinition/api.go#L19
commentFormatting: put a space between `//` and comment text (gocritic)
|
domain/redirectdefinition/repository/redirectdefinition.go#L72
Consider pre-allocating `operations` (prealloc)
|
domain/redirectdefinition/repository/redirectdefinition.go#L66
unnecessary trailing newline (whitespace)
|
domain/redirectdefinition/repository/redirectdefinition.go#L70
unnecessary leading newline (whitespace)
|
domain/redirectdefinition/command/createredirectsfromcontentserver.go#L29
unnecessary leading newline (whitespace)
|
domain/redirectdefinition/api.go#L28
unnecessary leading newline (whitespace)
|
domain/redirectdefinition/command/createredirectsfromcontentserver.go#L28
unused-parameter: parameter 'repo' seems to be unused, consider removing or renaming it as _ (revive)
|
domain/redirectdefinition/consolidateredirectdefinitions.go#L9
unused-parameter: parameter 'l' seems to be unused, consider removing or renaming it as _ (revive)
|
domain/redirectdefinition/consolidateredirectdefinitions_test.go#L19
redefines-builtin-id: redefinition of the built-in function new (revive)
|
domain/redirectdefinition/service.go#L19
unused-parameter: parameter 'p' seems to be unused, consider removing or renaming it as _ (revive)
|
domain/redirectdefinition/service.go#L39
unused-parameter: parameter 'dimension' seems to be unused, consider removing or renaming it as _ (revive)
|
domain/redirectdefinition/service.go#L44
unused-parameter: parameter 'def' seems to be unused, consider removing or renaming it as _ (revive)
|
domain/redirectdefinition/service.go#L49
unused-parameter: parameter 'id' seems to be unused, consider removing or renaming it as _ (revive)
|
domain/redirectdefinition/service.go#L54
unused-parameter: parameter 'def' seems to be unused, consider removing or renaming it as _ (revive)
|
domain/redirectdefinition/autocreateredirectdefinitions.go#L91
var-naming: func FindNodeById should be FindNodeByID (revive)
|
domain/redirectdefinition/api.go#L59
if-return: redundant if ...; err != nil check, just return error instead. (revive)
|
The logs for this run have expired and are no longer available.
Loading