Preparing report...

Report for github.com/weijunji/SA-Project

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


golint30%

Golint is a linter for Go source code.

    • SA-Project/internal/server/config.go
    • Line 7: warning: should not use dot imports (golint)
    • Line 11: warning: exported type Config should have comment or be unexported (golint)
    • Line 36: warning: exported function GetPort should have comment or be unexported (golint)
    • Line 40: warning: exported function GetAuth should have comment or be unexported (golint)
    • SA-Project/internal/client/config.go
    • Line 10: warning: should not use dot imports (golint)
    • Line 14: warning: exported type Config should have comment or be unexported (golint)
    • Line 65: warning: exported function GetUUID should have comment or be unexported (golint)
    • Line 69: warning: exported function GetHeartbeat should have comment or be unexported (golint)
    • Line 73: warning: exported function GetAuth should have comment or be unexported (golint)
    • Line 77: warning: exported function GetHost should have comment or be unexported (golint)
    • SA-Project/internal/client/push.go
    • Line 9: warning: exported type Control should have comment or be unexported (golint)
    • Line 13: warning: exported method Control.Lock should have comment or be unexported (golint)
    • Line 19: warning: exported method Control.Unlock should have comment or be unexported (golint)
    • Line 25: warning: exported method Control.Stop should have comment or be unexported (golint)
    • SA-Project/internal/web/clients.go
    • Line 12: warning: exported var Sess should have comment or be unexported (golint)
    • Line 14: warning: exported function NewClientsService should have comment or be unexported (golint)
    • Line 36: warning: exported type ClientPutParams should have comment or be unexported (golint)
    • SA-Project/internal/web/config.go
    • Line 7: warning: should not use dot imports (golint)
    • Line 11: warning: exported type Config should have comment or be unexported (golint)
    • Line 38: warning: exported function GetUUID should have comment or be unexported (golint)
    • Line 42: warning: exported function GetHeartbeat should have comment or be unexported (golint)
    • Line 46: warning: exported function GetAuth should have comment or be unexported (golint)
    • Line 50: warning: exported function GetHost should have comment or be unexported (golint)
    • SA-Project/pkg/db/clientInfo/clientInfo.go
    • Line 1: warning: don't use MixedCaps in package name; clientInfo should be clientinfo (golint)
    • Line 10: warning: exported type ClientInfo should have comment or be unexported (golint)
    • Line 17: warning: exported type ClientLog should have comment or be unexported (golint)
    • Line 25: warning: exported const Lock should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported function GetClientInfos should have comment or be unexported (golint)
    • Line 42: warning: exported function GetClient should have comment or be unexported (golint)
    • Line 48: warning: exported function NewClientInfo should have comment or be unexported (golint)
    • Line 58: warning: exported method ClientInfo.OfflineOp should have comment or be unexported (golint)
    • Line 69: warning: exported method ClientInfo.OnlineOp should have comment or be unexported (golint)
    • Line 77: warning: exported method ClientInfo.UnlockOp should have comment or be unexported (golint)
    • Line 85: warning: exported method ClientInfo.LockOp should have comment or be unexported (golint)
    • Line 93: warning: exported method ClientInfo.SetName should have comment or be unexported (golint)
    • Line 97: warning: exported function GetClientLogs should have comment or be unexported (golint)
    • SA-Project/internal/server/webCall.go
    • Line 8: warning: exported type WebCall should have comment or be unexported (golint)
    • Line 12: warning: exported method WebCall.Locked should have comment or be unexported (golint)
    • Line 35: warning: exported method WebCall.Offline 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!