Preparing report...

Report for github.com/ElectronSz/go-mongo-rest

(v0.0.0-20191007173856-7ad52f34ab61)

A    Great!    Found 5 issues across 4 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!


golint0%

Golint is a linter for Go source code.

    • config/config.go
    • Line 9: warning: comment on exported type Config should be of the form "Config ..." (with optional leading article) (golint)
    • models/movie.go
    • Line 5: warning: comment on exported type Movie should be of the form "Movie ..." (with optional leading article) (golint)
    • dao/movies_dao.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 11: warning: exported type MoviesDAO should have comment or be unexported (golint)
    • Line 19: warning: exported const COLLECTION should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: comment on exported method MoviesDAO.Connect should be of the form "Connect ..." (golint)
    • Line 31: warning: comment on exported method MoviesDAO.FindAll should be of the form "FindAll ..." (golint)
    • Line 38: warning: comment on exported method MoviesDAO.FindById should be of the form "FindById ..." (golint)
    • app.go
    • Line 10: warning: should not use dot imports (golint)
    • Line 11: warning: should not use dot imports (golint)
    • Line 12: warning: should not use dot imports (golint)
    • Line 19: warning: comment on exported function AllMoviesEndPoint should be of the form "AllMoviesEndPoint ..." (golint)
    • Line 29: warning: comment on exported function FindMovieEndpoint should be of the form "FindMovieEndpoint ..." (golint)
    • Line 40: warning: comment on exported function CreateMovieEndPoint should be of the form "CreateMovieEndPoint ..." (golint)
    • Line 56: warning: comment on exported function UpdateMovieEndPoint should be of the form "UpdateMovieEndPoint ..." (golint)
    • Line 71: warning: comment on exported function DeleteMovieEndPoint should be of the form "DeleteMovieEndPoint ..." (golint)

license0%

Checks whether your project has a LICENSE file.


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!