Preparing report...

Report for github.com/decentralized-cloud/api-gateway

A+    Excellent!    Found 25 issues across 92 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo100%

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.

No problems detected. Good job!


golint72%

Golint is a linter for Go source code.

    • api-gateway/services/graphql/query/edgecluster/edge-cluster-resolver.go
    • Line 182: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 232: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 278: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • api-gateway/services/graphql/types/project/query.go
    • Line 1: warning: package comment should be of the form "Package project ..." (golint)
    • Line 13: warning: exported type QueryResolverCreatorContract should have comment or be unexported (golint)
    • Line 111: warning: exported type ProjectDetail should have comment or be unexported (golint)
    • Line 115: warning: exported type ProjectClusterEdgeClusterInputArgument should have comment or be unexported (golint)
    • Line 119: warning: exported type ProjectEdgeClustersInputArgument should have comment or be unexported (golint)
    • api-gateway/services/graphql/types/edgecluster/query.go
    • Line 1: warning: package comment should be of the form "Package edgecluster ..." (golint)
    • Line 10: warning: exported type QueryResolverCreatorContract should have comment or be unexported (golint)
    • Line 18: warning: exported type EdgeClusterDetail should have comment or be unexported (golint)
    • Line 23: warning: exported type EdgeClusterClusterEdgeClusterInputArgument should have comment or be unexported (golint)
    • Line 27: warning: exported type EdgeClusterEdgeClustersInputArgument should have comment or be unexported (golint)
    • api-gateway/services/graphql/types/query-input-args.go
    • Line 9: warning: exported type SortingOptionPair should have comment or be unexported (golint)
    • Line 14: warning: exported type UserProjectInputArgument should have comment or be unexported (golint)
    • Line 18: warning: exported type UserProjectsInputArgument should have comment or be unexported (golint)
    • Line 24: warning: exported type UserEdgeClusterInputArgument should have comment or be unexported (golint)
    • Line 28: warning: exported type UserEdgeClustersInputArgument should have comment or be unexported (golint)
    • api-gateway/services/graphql/types/project/mutation.go
    • Line 1: warning: package comment should be of the form "Package project ..." (golint)
    • Line 10: warning: exported type MutationResolverCreatorContract should have comment or be unexported (golint)
    • Line 163: warning: exported type CreateProjectInput should have comment or be unexported (golint)
    • Line 168: warning: exported type CreateProjectInputArgument should have comment or be unexported (golint)
    • Line 172: warning: exported type UpdateProjectInput should have comment or be unexported (golint)
    • Line 178: warning: exported type UpdateProjectInputArgument should have comment or be unexported (golint)
    • Line 182: warning: exported type DeleteProjectInput should have comment or be unexported (golint)
    • Line 188: warning: exported type DeleteProjectInputArgument should have comment or be unexported (golint)
    • api-gateway/services/graphql/types/edgecluster/mutation.go
    • Line 1: warning: package comment should be of the form "Package edgecluster ..." (golint)
    • Line 10: warning: exported type MutationResolverCreatorContract should have comment or be unexported (golint)
    • Line 161: warning: exported type CreateEdgeClusterInput should have comment or be unexported (golint)
    • Line 169: warning: exported type CreateEdgeClusterInputArgument should have comment or be unexported (golint)
    • Line 173: warning: exported type UpdateEdgeClusterInput should have comment or be unexported (golint)
    • Line 182: warning: exported type UpdateEdgeClusterInputArgument should have comment or be unexported (golint)
    • Line 186: warning: exported type DeleteEdgeClusterInput should have comment or be unexported (golint)
    • Line 191: warning: exported type DeleteEdgeClusterInputArgument should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!