Preparing report...

Report for github.com/cosmos/atlas

A+    Excellent!    Found 16 issues across 38 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!


gocyclo94%

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.


golint57%

Golint is a linter for Go source code.

    • atlas/server/models/gorm.go
    • Line 16: warning: exported function NewNullString should have comment or be unexported (golint)
    • Line 24: warning: exported function NewNullInt64 should have comment or be unexported (golint)
    • atlas/server/service.go
    • Line 13: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 46: warning: exported function NewService should have comment or be unexported (golint)
    • atlas/server/models/module.go
    • Line 20: warning: comment on exported type ModuleVersionJSON should be of the form "ModuleVersionJSON ..." (with optional leading article) (golint)
    • Line 134: warning: exported method ModuleVersion.NewModuleVersionJSON should have comment or be unexported (golint)
    • Line 157: warning: exported method BugTracker.NewBugTrackerJSON should have comment or be unexported (golint)
    • Line 280: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 357: warning: comment on exported method Module.UserStarred should be of the form "UserStarred ..." (golint)
    • Line 605: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • atlas/server/models/node.go
    • Line 77: warning: exported method Location.NewLocationJSON should have comment or be unexported (golint)
    • Line 97: warning: exported method Node.NewNodeJSON should have comment or be unexported (golint)
    • Line 136: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 196: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • atlas/server/models/user.go
    • Line 109: warning: exported method User.NewUserJSON should have comment or be unexported (golint)
    • Line 145: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 390: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • atlas/server/db_logger.go
    • Line 51: warning: exported method DBLogger.Info should have comment or be unexported (golint)
    • Line 60: warning: exported method DBLogger.Warn should have comment or be unexported (golint)
    • Line 78: warning: exported method DBLogger.Trace should have comment or be unexported (golint)
    • atlas/server/router/v1/router.go
    • Line 21: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 40: warning: exported const V1APIPathPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 68: warning: exported function NewRouter should have comment or be unexported (golint)
    • Line 607: warning: comment on exported method Router.GetUserByName should be of the form "GetUserByName ..." (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!