Preparing report...

Report for github.com/klud1/graphql-docker-api

A+    Excellent!    Found 5 issues across 10 files

Tweet

gofmt90%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo90%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.


golint90%

Golint is a linter for Go source code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign50%

IneffAssign detects ineffectual assignments in Go code.

    • graphql-docker-api/resolver/swarm.go
    • Line 3: warning: cannot find package "." in: (ineffassign)
    • Line 3: warning: could not import gitlab.com/ulm0/graphql-go (invalid package name: "") (ineffassign)
    • Line 59: warning: r.TaskHistoryRetentionLimit undefined (type *orchestrationConfigResolver has no field or method TaskHistoryRetentionLimit) (ineffassign)
    • Line 99: warning: r.AutoLockManagers undefined (type *encryptionConfigResolver has no field or method AutoLockManagers) (ineffassign)
    • Line 119: warning: r.UnlockKey undefined (type *unlockKeyResolver has no field or method UnlockKey) (ineffassign)
    • Line 165: warning: r.Index undefined (type *swarmVersionResolver has no field or method Index) (ineffassign)
    • graphql-docker-api/resolver/system.go
    • Line 116: warning: c.ID undefined (type *systemInfoCommitResolver has no field or method ID) (ineffassign)
    • Line 117: warning: c.Expected undefined (type *systemInfoCommitResolver has no field or method Expected) (ineffassign)
    • graphql-docker-api/cmd/gdapi/main.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/urfave/negroni (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/gorilla/mux (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import gitlab.com/ulm0/graphql-docker-api/resolver (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import gitlab.com/ulm0/graphql-docker-api/schema (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import gitlab.com/ulm0/graphql-go (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import gitlab.com/ulm0/graphql-go/relay (invalid package name: "") (ineffassign)
    • graphql-docker-api/resolver/assertions.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/docker/docker/api/types (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/docker/docker/api/types/registry (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/docker/docker/api/types/swarm (invalid package name: "") (ineffassign)
    • graphql-docker-api/resolver/resolvers.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/docker/docker/client (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import golang.org/x/net/context (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!