Preparing report...

Report for github.com/emicklei/dgraph-access

A+    Excellent!    Found 5 issues across 29 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!


gocyclo96%

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.


golint86%

Golint is a linter for Go source code.

    • dgraph-access/examples/permissions/models.go
    • Line 9: warning: exported type PermissionsInProject should have comment or be unexported (golint)
    • Line 16: warning: exported type CloudIdentity should have comment or be unexported (golint)
    • Line 23: warning: exported type Project should have comment or be unexported (golint)
    • Line 28: warning: exported type Version should have comment or be unexported (golint)
    • dgraph-access/cmd/dggen/models.go
    • Line 22: warning: exported type FileData should have comment or be unexported (golint)
    • Line 28: warning: exported type TypeData should have comment or be unexported (golint)
    • Line 33: warning: exported type FieldData should have comment or be unexported (golint)
    • Line 39: warning: exported method FileData.EnsureImport should have comment or be unexported (golint)
    • dgraph-access/nquad_builder.go
    • Line 10: warning: exported function ReflectNQuads should have comment or be unexported (golint)
    • Line 38: warning: exported function IsZeroOfUnderlyingType 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!