Preparing report...

Report for github.com/katbyte/tctest

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


gocyclo62%

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.


golint12%

Golint is a linter for Go source code.

    • tctest/version/version.go
    • Line 3: warning: exported const Version should have comment or be unexported (golint)
    • Line 5: warning: exported var GitCommit should have comment or be unexported (golint)
    • tctest/common/http.go
    • Line 11: warning: exported var HTTP should have comment or be unexported (golint)
    • Line 13: warning: exported function NewHTTPClient should have comment or be unexported (golint)
    • Line 48: warning: exported function NewTransport should have comment or be unexported (golint)
    • tctest/cmd/tctest/cli/cmds.go
    • Line 16: warning: exported type TCFlags should have comment or be unexported (golint)
    • Line 25: warning: exported type PRFlags should have comment or be unexported (golint)
    • Line 33: warning: exported type WaitFlags should have comment or be unexported (golint)
    • Line 39: warning: exported type FlagData should have comment or be unexported (golint)
    • Line 47: warning: exported function ValidateParams should have comment or be unexported (golint)
    • Line 59: warning: exported function Make should have comment or be unexported (golint)
    • tctest/cmd/tctest/cli/gh.go
    • Line 13: warning: exported type GithubRepo should have comment or be unexported (golint)
    • Line 19: warning: exported function NewGithubRepoFromViper should have comment or be unexported (golint)
    • Line 32: warning: exported function NewGithubRepo should have comment or be unexported (golint)
    • Line 46: warning: exported method GithubRepo.NewClient should have comment or be unexported (golint)
    • tctest/cmd/tctest/cli/pr.go
    • Line 17: warning: exported method GithubRepo.PrUrl should have comment or be unexported (golint)
    • Line 21: warning: exported method GithubRepo.PrCmd should have comment or be unexported (golint)
    • Line 38: warning: comment on exported method GithubRepo.PrTests should be of the form "PrTests ..." (golint)
    • tctest/cmd/tctest/cli/tc.go
    • Line 18: warning: exported type TeamCity should have comment or be unexported (golint)
    • Line 25: warning: exported type TCBuilds should have comment or be unexported (golint)
    • Line 30: warning: exported type TCBuild should have comment or be unexported (golint)
    • Line 39: warning: exported function NewTeamCityFromViper should have comment or be unexported (golint)
    • Line 47: warning: exported function NewTeamCity should have comment or be unexported (golint)
    • Line 60: warning: exported function NewTeamCityUsingTokenAuth should have comment or be unexported (golint)
    • Line 67: warning: exported function NewTeamCityUsingBasicAuth should have comment or be unexported (golint)
    • Line 75: warning: exported method TeamCity.BuildCmd should have comment or be unexported (golint)
    • Line 121: warning: exported method TeamCity.TestResultsCmd should have comment or be unexported (golint)
    • Line 159: warning: exported method TeamCity.TestResultsByPRCmd 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!