Preparing report...

Report for github.com/saitho/git-file-webserver

A    Great!    Found 16 issues across 20 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!


golint25%

Golint is a linter for Go source code.

    • git-file-webserver/git/client.go
    • Line 10: warning: exported type ClientInterface should have comment or be unexported (golint)
    • Line 17: warning: exported type Client should have comment or be unexported (golint)
    • Line 22: warning: exported method Client.GetCurrentRepo should have comment or be unexported (golint)
    • Line 26: warning: exported method Client.GetRepositoryBySlug should have comment or be unexported (golint)
    • Line 35: warning: exported method Client.SelectRepository should have comment or be unexported (golint)
    • git-file-webserver/git/client_tags.go
    • Line 11: warning: exported type GitTag should have comment or be unexported (golint)
    • Line 16: warning: exported method Client.GetTags should have comment or be unexported (golint)
    • Line 34: warning: exported method Client.GetAllTags should have comment or be unexported (golint)
    • git-file-webserver/git/reference.go
    • Line 9: warning: exported type Reference should have comment or be unexported (golint)
    • Line 18: warning: exported method Reference.GetPath should have comment or be unexported (golint)
    • Line 25: warning: exported method Reference.GetName should have comment or be unexported (golint)
    • Line 32: warning: exported method Reference.GetShowRef should have comment or be unexported (golint)
    • git-file-webserver/webserver/handler.go
    • Line 35: warning: exported function ResolveVirtualMajorTag should have comment or be unexported (golint)
    • Line 59: warning: exported function FileHandler should have comment or be unexported (golint)
    • Line 94: warning: exported function IndexHandler should have comment or be unexported (golint)
    • git-file-webserver/webserver/request_handler.go
    • Line 13: warning: exported type Handler should have comment or be unexported (golint)
    • Line 15: warning: exported type Route should have comment or be unexported (golint)
    • Line 20: warning: exported type RequestHandler should have comment or be unexported (golint)
    • Line 25: warning: exported function NewRequestHandler should have comment or be unexported (golint)
    • Line 35: warning: exported method RequestHandler.Handle should have comment or be unexported (golint)
    • Line 57: warning: exported type Request should have comment or be unexported (golint)
    • Line 63: warning: exported type Response should have comment or be unexported (golint)
    • Line 67: warning: exported method Response.Text should have comment or be unexported (golint)
    • Line 71: warning: exported method Response.HTML should have comment or be unexported (golint)
    • Line 75: warning: exported method Response.Auto should have comment or be unexported (golint)
    • git-file-webserver/webserver/webserver.go
    • Line 12: warning: exported type Webserver should have comment or be unexported (golint)
    • Line 19: warning: exported method Webserver.AddHandler should have comment or be unexported (golint)
    • Line 26: warning: exported method Webserver.Run should have comment or be unexported (golint)
    • git-file-webserver/config/config.go
    • Line 19: warning: exported var VERSION should have comment or be unexported (golint)
    • Line 21: warning: exported var GitUpdateModeCache should have comment or be unexported (golint)
    • Line 22: warning: exported var GitUpdateModeWebhookGitHub should have comment or be unexported (golint)
    • Line 24: warning: exported const DownloadLocation should have comment or be unexported (golint)
    • Line 26: warning: exported type RepoConfig should have comment or be unexported (golint)
    • Line 44: warning: exported method RepoConfig.GetDownloadPath should have comment or be unexported (golint)
    • Line 48: warning: exported method RepoConfig.GetCacheFilePath should have comment or be unexported (golint)
    • Line 52: warning: exported method RepoConfig.GetUpdatedTime should have comment or be unexported (golint)
    • Line 58: warning: exported method RepoConfig.GetUpdatedTimeObject should have comment or be unexported (golint)
    • Line 62: warning: exported method RepoConfig.IsUpToDate should have comment or be unexported (golint)
    • Line 77: warning: exported type Config should have comment or be unexported (golint)
    • Line 132: warning: exported function LoadConfig should have comment or be unexported (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!