Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command
No problems detected. Good job!
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!
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.
-
launcher/main.go
- Line 364: warning: cyclomatic complexity 20 of function doGameStart() is high (> 15) (gocyclo)
- Line 280: warning: cyclomatic complexity 20 of function doDownloadLibraries() is high (> 15) (gocyclo)
Golint is a linter for Go source code.
-
launcher/cache.go
- Line 10: warning: exported type Cache should have comment or be unexported (golint)
- Line 64: warning: exported method Cache.Sync should have comment or be unexported (golint)
- Line 75: warning: exported method Cache.ObjectDownload should have comment or be unexported (golint)
- Line 113: warning: exported method Cache.ObjectGet should have comment or be unexported (golint)
- Line 137: warning: exported method Cache.ObjectInstall should have comment or be unexported (golint)
- Line 157: warning: exported method Cache.ObjectRead should have comment or be unexported (golint)
- Line 166: warning: exported method Cache.ObjectCopy should have comment or be unexported (golint)
- Line 199: warning: exported method Cache.Reset should have comment or be unexported (golint)
- Line 203: warning: exported type CacheObject should have comment or be unexported (golint)
-
launcher/html.go
- Line 71: warning: exported type HTML should have comment or be unexported (golint)
- Line 89: warning: exported method HTML.NewLine should have comment or be unexported (golint)
- Line 93: warning: exported method HTML.FormStart should have comment or be unexported (golint)
- Line 97: warning: exported method HTML.FormSubmit should have comment or be unexported (golint)
- Line 101: warning: exported method HTML.FormEnd should have comment or be unexported (golint)
- Line 105: warning: exported method HTML.Label should have comment or be unexported (golint)
- Line 109: warning: exported method HTML.Input should have comment or be unexported (golint)
- Line 113: warning: exported method HTML.Button should have comment or be unexported (golint)
- Line 117: warning: exported method HTML.SelectStart should have comment or be unexported (golint)
- Line 121: warning: exported method HTML.SelectEnd should have comment or be unexported (golint)
- Line 125: warning: exported method HTML.Option should have comment or be unexported (golint)
-
launcher/libraries.go
- Line 3: warning: exported type Library should have comment or be unexported (golint)
- Line 18: warning: exported type Artifact should have comment or be unexported (golint)
- Line 25: warning: exported type Classifiers should have comment or be unexported (golint)
- Line 33: warning: exported type Natives should have comment or be unexported (golint)
-
launcher/rules.go
- Line 8: warning: exported type Rule should have comment or be unexported (golint)
- Line 21: warning: exported method Rule.Valid should have comment or be unexported (golint)
- Line 61: warning: exported method Rule.Match should have comment or be unexported (golint)
-
launcher/versions.go
- Line 7: warning: exported type VersionManifest should have comment or be unexported (golint)
- Line 15: warning: exported function NewVersionManifest should have comment or be unexported (golint)
- Line 31: warning: exported method VersionManifest.GetVersionsByType should have comment or be unexported (golint)
- Line 40: warning: exported method VersionManifest.GetReleases should have comment or be unexported (golint)
- Line 43: warning: exported method VersionManifest.GetSnapshots should have comment or be unexported (golint)
- Line 47: warning: exported type Version should have comment or be unexported (golint)
- Line 68: warning: exported method Version.Load should have comment or be unexported (golint)
- Line 90: warning: exported type Downloads should have comment or be unexported (golint)
- Line 96: warning: exported type Download should have comment or be unexported (golint)
-
launcher/webview.go
- Line 12: warning: exported type Webview should have comment or be unexported (golint)
- Line 17: warning: exported function NewWebview should have comment or be unexported (golint)
- Line 35: warning: exported method Webview.Run should have comment or be unexported (golint)
- Line 43: warning: exported method Webview.Destroy should have comment or be unexported (golint)
-
launcher/assets.go
- Line 10: warning: exported type AssetIndex should have comment or be unexported (golint)
- Line 21: warning: exported method AssetIndex.Load should have comment or be unexported (golint)
- Line 44: warning: exported type Asset should have comment or be unexported (golint)
- Line 50: warning: exported method Asset.GetURL should have comment or be unexported (golint)
-
launcher/auth.go
- Line 15: warning: exported type Auth should have comment or be unexported (golint)
- Line 32: warning: exported method Auth.LoadToken should have comment or be unexported (golint)
- Line 53: warning: exported method Auth.SaveToken should have comment or be unexported (golint)
- Line 63: warning: exported method Auth.DecodeJWT should have comment or be unexported (golint)
- Line 83: warning: exported method Auth.Login should have comment or be unexported (golint)
-
launcher/git.go
- Line 4: warning: comment on exported var GitBranch should be of the form "GitBranch ..." (golint)
- Line 6: warning: exported var GitCommit should have comment or be unexported (golint)
-
launcher/arguments.go
- Line 15: warning: exported type Arguments should have comment or be unexported (golint)
- Line 26: warning: exported method Arguments.GameArgs should have comment or be unexported (golint)
- Line 55: warning: exported method Arguments.JVMArgs should have comment or be unexported (golint)
- Line 90: warning: exported method Arguments.ParseValues should have comment or be unexported (golint)
- Line 132: warning: exported type ArgumentRule should have comment or be unexported (golint)
- Line 140: warning: exported method ArgumentRule.ParseValues should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!