Preparing report...

Report for github.com/devsdk/DFD

A+    Excellent!    Found 10 issues across 26 files

Tweet

gofmt88%

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!


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!


golint84%

Golint is a linter for Go source code.

    • DFD/src/server/api/v1/docmodels/v1doc_models.go
    • Line 3: warning: exported type ResponseSuccess should have comment or be unexported (golint)
    • Line 8: warning: exported type ResponseBadRequest should have comment or be unexported (golint)
    • Line 12: warning: exported type ResponseUnauthorized should have comment or be unexported (golint)
    • Line 18: warning: exported type ResponseForbidden should have comment or be unexported (golint)
    • Line 23: warning: exported type ResponseNotFound should have comment or be unexported (golint)
    • Line 28: warning: exported type ResponseInternalServerError should have comment or be unexported (golint)
    • Line 33: warning: exported type ResponseImageElement should have comment or be unexported (golint)
    • Line 38: warning: exported type ResponseLoLHistory should have comment or be unexported (golint)
    • Line 45: warning: exported type ResponseDateLog should have comment or be unexported (golint)
    • Line 54: warning: exported type RequestBodyAnnouncePost should have comment or be unexported (golint)
    • Line 60: warning: exported type RequestBodyImagePost should have comment or be unexported (golint)
    • Line 64: warning: exported type RequestBodyStatePost should have comment or be unexported (golint)
    • Line 68: warning: exported type RequestBodyToken should have comment or be unexported (golint)
    • Line 72: warning: exported type RequestBodyPatchUser should have comment or be unexported (golint)
    • Line 77: warning: exported type RequestEmpty should have comment or be unexported (golint)
    • DFD/src/server/auth/auth.controll.go
    • Line 6: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 47: warning: if block ends with a return statement, so drop this else and outdent its block (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!


misspell88%

Misspell Finds commonly misspelled English words