Preparing report...

Report for github.com/clok/ghlabels

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


gocyclo90%

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.


golint40%

Golint is a linter for Go source code.

    • ghlabels/types/client.go
    • Line 18: warning: exported type Client should have comment or be unexported (golint)
    • Line 22: warning: exported method Client.Client should have comment or be unexported (golint)
    • Line 26: warning: exported method Client.GenerateClient should have comment or be unexported (golint)
    • Line 36: warning: exported method Client.GetAllUserRepos should have comment or be unexported (golint)
    • Line 61: warning: exported method Client.GetAllOrgRepos should have comment or be unexported (golint)
    • Line 86: warning: exported method Client.GetRepository should have comment or be unexported (golint)
    • Line 99: warning: exported method Client.GetLabel should have comment or be unexported (golint)
    • Line 112: warning: exported method Client.GetLabels should have comment or be unexported (golint)
    • Line 128: warning: exported method Client.GetRepoIssues should have comment or be unexported (golint)
    • Line 146: warning: exported method Client.UpdateIssueLabels should have comment or be unexported (golint)
    • Line 170: warning: exported method Client.RenameLabel should have comment or be unexported (golint)
    • Line 183: warning: exported method Client.UpdateLabel should have comment or be unexported (golint)
    • Line 200: warning: exported method Client.CreateLabel should have comment or be unexported (golint)
    • Line 217: warning: exported method Client.DeleteLabel should have comment or be unexported (golint)
    • ghlabels/types/config.go
    • Line 5: warning: exported type Label should have comment or be unexported (golint)
    • Line 11: warning: exported method Label.SetName should have comment or be unexported (golint)
    • Line 15: warning: exported type Rename should have comment or be unexported (golint)
    • Line 20: warning: exported type Config should have comment or be unexported (golint)
    • Line 26: warning: exported method Config.FindSyncLabel should have comment or be unexported (golint)
    • ghlabels/types/repo.go
    • Line 13: warning: exported type Repo should have comment or be unexported (golint)
    • Line 20: warning: exported function NewRepo should have comment or be unexported (golint)
    • Line 31: warning: exported method Repo.Name should have comment or be unexported (golint)
    • Line 35: warning: exported method Repo.SetName should have comment or be unexported (golint)
    • Line 39: warning: exported method Repo.Owner should have comment or be unexported (golint)
    • Line 43: warning: exported method Repo.SetOwner should have comment or be unexported (golint)
    • Line 47: warning: exported method Repo.FullName should have comment or be unexported (golint)
    • Line 51: warning: exported method Repo.SetFullName should have comment or be unexported (golint)
    • Line 55: warning: exported method Repo.Labels should have comment or be unexported (golint)
    • Line 59: warning: exported method Repo.SetLabels should have comment or be unexported (golint)
    • Line 65: warning: exported method Repo.GetLabel should have comment or be unexported (golint)
    • Line 70: warning: exported method Repo.SetLabel should have comment or be unexported (golint)
    • Line 74: warning: exported method Repo.DeleteLabel should have comment or be unexported (golint)
    • Line 78: warning: exported method Repo.HasLabel should have comment or be unexported (golint)
    • ghlabels/helpers/config.go
    • Line 18: warning: exported function GetDefaultConfig should have comment or be unexported (golint)
    • Line 22: warning: exported function DetermineConfig should have comment or be unexported (golint)
    • ghlabels/helpers/help.go
    • Line 33: warning: exported var SyncAllUsageText should have comment or be unexported (golint)
    • Line 40: warning: exported var SyncRepoUsageText 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!