Preparing report...

Report for github.com/xmdhs/gomclauncher

A+    Excellent!    Found 27 issues across 43 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!


gocyclo97%

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.


golint37%

Golint is a linter for Go source code.

    • gomclauncher/lang/lang.go
    • Line 19: warning: exported function Setlanguge should have comment or be unexported (golint)
    • Line 31: warning: exported function Lang should have comment or be unexported (golint)
    • Line 41: warning: exported var ErrNotFind should have comment or be unexported (golint)
    • gomclauncher/flag/config.go
    • Line 34: warning: error var HaveProfiles should have name of the form ErrFoo (golint)
    • Line 34: warning: exported var HaveProfiles should have comment or be unexported (golint)
    • Line 68: warning: exported type Gmlconfig should have comment or be unexported (golint)
    • Line 70: warning: exported type Config should have comment or be unexported (golint)
    • gomclauncher/download/libraries.go
    • Line 21: warning: exported type Libraries should have comment or be unexported (golint)
    • Line 31: warning: exported function Newlibraries should have comment or be unexported (golint)
    • Line 186: warning: exported function Aget should have comment or be unexported (golint)
    • gomclauncher/flag/download.go
    • Line 15: warning: exported type Flag should have comment or be unexported (golint)
    • Line 34: warning: exported function NewFlag should have comment or be unexported (golint)
    • Line 42: warning: exported method Flag.D should have comment or be unexported (golint)
    • gomclauncher/auth/post.go
    • Line 12: warning: exported var Transport should have comment or be unexported (golint)
    • Line 21: warning: error should be the last type when returning multiple items (golint)
    • gomclauncher/download/download.go
    • Line 16: warning: exported method Libraries.Downassets should have comment or be unexported (golint)
    • Line 86: warning: exported method Libraries.Downlibrarie should have comment or be unexported (golint)
    • Line 145: warning: error var FileDownLoadFail should have name of the form ErrFoo (golint)
    • Line 145: warning: exported var FileDownLoadFail should have comment or be unexported (golint)
    • Line 147: warning: exported method Libraries.Downjar should have comment or be unexported (golint)
    • gomclauncher/auth/authlib.go
    • Line 14: warning: exported const Authlibversion should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported var Authliburls should have comment or be unexported (golint)
    • Line 23: warning: exported function Getauthlibapi should have comment or be unexported (golint)
    • Line 105: warning: error var JsonNotTrue should have name of the form ErrFoo (golint)
    • Line 105: warning: exported var JsonNotTrue should have comment or be unexported (golint)
    • gomclauncher/flag/online.go
    • Line 14: warning: exported method Flag.Aonline should have comment or be unexported (golint)
    • Line 72: warning: exported method Flag.Listname should have comment or be unexported (golint)
    • gomclauncher/auth/refresh.go
    • Line 10: warning: exported function Refresh should have comment or be unexported (golint)
    • Line 62: warning: exported function Validate should have comment or be unexported (golint)
    • Line 81: warning: error var AccessTokenCanNotUse should have name of the form ErrFoo (golint)
    • Line 81: warning: exported var AccessTokenCanNotUse should have comment or be unexported (golint)
    • gomclauncher/flag/test.go
    • Line 8: warning: exported function Test should have comment or be unexported (golint)
    • Line 32: warning: exported function Find should have comment or be unexported (golint)
    • gomclauncher/launcher/flag.go
    • Line 14: warning: exported type Gameinfo should have comment or be unexported (golint)
    • Line 43: warning: exported method Gameinfo.Run115 should have comment or be unexported (golint)
    • Line 52: warning: exported method Gameinfo.GenLauncherCmdArgs should have comment or be unexported (golint)
    • Line 100: warning: error var JsonErr should have name of the form ErrFoo (golint)
    • Line 100: warning: exported var JsonErr should have comment or be unexported (golint)
    • Line 189: warning: exported function Name2path should have comment or be unexported (golint)
    • Line 193: warning: exported type Modsjson should have comment or be unexported (golint)
    • Line 203: warning: exported type Librarie should have comment or be unexported (golint)
    • gomclauncher/launcher/json.go
    • Line 3: warning: exported type LauncherjsonX115 should have comment or be unexported (golint)
    • Line 72: warning: exported type LibraryX115 should have comment or be unexported (golint)
    • gomclauncher/download/version.go
    • Line 15: warning: exported function Getversionlist should have comment or be unexported (golint)
    • Line 111: warning: error var NoSuch should have name of the form ErrFoo (golint)
    • Line 111: warning: exported var NoSuch should have comment or be unexported (golint)
    • gomclauncher/auth/authenticate.go
    • Line 11: warning: error var NotOk should have name of the form ErrFoo (golint)
    • Line 11: warning: exported var NotOk should have comment or be unexported (golint)
    • Line 12: warning: error var NoProfiles should have name of the form ErrFoo (golint)
    • Line 90: warning: exported function ListAvailableProfileName should have comment or be unexported (golint)
    • Line 99: warning: exported var ErrNotSelctProFile should have comment or be unexported (golint)
    • Line 103: warning: exported type Auth should have comment or be unexported (golint)
    • gomclauncher/auth/msauth.go
    • Line 32: warning: exported function MsLogin should have comment or be unexported (golint)
    • Line 133: warning: exported function GetProfile should have comment or be unexported (golint)
    • Line 163: warning: exported type Profile should have comment or be unexported (golint)
    • Line 188: warning: exported var ErrCode should have comment or be unexported (golint)
    • gomclauncher/launcher/info.go
    • Line 4: warning: exported const Launcherbrand should have comment (or a comment on this block) or be unexported (golint)
    • Line 8: warning: exported const Minecraft 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!