fixing linter problems #17
Annotations
10 errors
lint:
cmd/api/migrations/all.go#L9
undefined: createCollections
|
lint:
cmd/api/migrations/all.go#L10
undefined: createIndexes (typecheck)
|
lint:
pkg/api/middleware/jwt.go#L71
cannot use cc (variable of type *"github.com/carverauto/eventrunner/pkg/context".CustomContext) as *"github.com/carverauto/eventrunner/pkg/context".Context value in argument to next: *"github.com/carverauto/eventrunner/pkg/context".CustomContext does not implement *"github.com/carverauto/eventrunner/pkg/context".Context (type *"github.com/carverauto/eventrunner/pkg/context".Context is pointer to interface, not interface)
|
lint:
pkg/api/middleware/rbac.go#L13
cc.GetAPIKey undefined (type *"github.com/carverauto/eventrunner/pkg/context".Context is pointer to interface, not interface)
|
lint:
pkg/api/middleware/rbac.go#L19
cc.Mongo undefined (type *"github.com/carverauto/eventrunner/pkg/context".Context is pointer to interface, not interface)
|
lint:
pkg/api/middleware/rbac.go#L19
cc.Context undefined (type *"github.com/carverauto/eventrunner/pkg/context".Context is pointer to interface, not interface)
|
lint:
pkg/api/middleware/rbac.go#L23
cc.SetClaim undefined (type *"github.com/carverauto/eventrunner/pkg/context".Context is pointer to interface, not interface)
|
lint:
pkg/api/middleware/rbac.go#L24
cc.SetClaim undefined (type *"github.com/carverauto/eventrunner/pkg/context".Context is pointer to interface, not interface)
|
lint:
pkg/api/middleware/rbac.go#L25
cc.SetClaim undefined (type *"github.com/carverauto/eventrunner/pkg/context".Context is pointer to interface, not interface)
|
lint:
pkg/api/middleware/rbac.go#L39
cc.GetStringClaim undefined (type *"github.com/carverauto/eventrunner/pkg/context".Context is pointer to interface, not interface) (typecheck)
|