fix build error #16
Annotations
10 errors and 10 warnings
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/repository/redirectdefinition.go#L6
import 'github.com/foomo/redirects/domain/redirectdefinition/store' is not allowed from list 'Main' (depguard)
|
domain/redirectdefinition/repository/redirectdefinition.go#L8
import 'github.com/foomo/keel/persistence/mongo' is not allowed from list 'Main' (depguard)
|
domain/redirectdefinition/repository/redirectdefinition.go#L25
named return "rs" with type "*RedirectsDefinitionRepository" found (nonamedreturns)
|
domain/redirectdefinition/service/service.go#L4
import 'github.com/foomo/contentserver/content' is not allowed from list 'Main' (depguard)
|
domain/redirectdefinition/service/service.go#L5
import 'github.com/foomo/redirects/domain/redirectdefinition/store' is not allowed from list 'Main' (depguard)
|
domain/redirectdefinition/service/service.go#L9
param new has same name as predeclared identifier (predeclared)
|
domain/redirectdefinition/api.go#L14
commentFormatting: put a space between `//` and comment text (gocritic)
|
domain/redirectdefinition/autocreateredirectdefinitions.go#L77
var-naming: func FindNodeById should be FindNodeByID (revive)
|
domain/redirectdefinition/consolidateredirectdefinitions.go#L9
unused-parameter: parameter 'l' seems to be unused, consider removing or renaming it as _ (revive)
|
domain/redirectdefinition/consolidateredirectdefinitions.go#L10
unused-parameter: parameter 'old' seems to be unused, consider removing or renaming it as _ (revive)
|
domain/redirectdefinition/service.go#L15
unused-parameter: parameter 'p' seems to be unused, consider removing or renaming it as _ (revive)
|
domain/redirectdefinition/service.go#L21
unused-parameter: parameter 'old' seems to be unused, consider removing or renaming it as _ (revive)
|
domain/redirectdefinition/service.go#L26
unused-parameter: parameter 'dimension' seems to be unused, consider removing or renaming it as _ (revive)
|
domain/redirectdefinition/service.go#L31
unused-parameter: parameter 'def' seems to be unused, consider removing or renaming it as _ (revive)
|
domain/redirectdefinition/service.go#L36
unused-parameter: parameter 'id' seems to be unused, consider removing or renaming it as _ (revive)
|
domain/redirectdefinition/service.go#L41
unused-parameter: parameter 'def' seems to be unused, consider removing or renaming it as _ (revive)
|
domain/redirectdefinition/autocreateredirectdefinitions_test.go#L60
redefines-builtin-id: redefinition of the built-in function new (revive)
|
The logs for this run have expired and are no longer available.
Loading