Preparing report...

Report for github.com/mlabouardy/butler

A    Great!    Found 8 issues across 9 files

Tweet

gofmt66%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


gocyclo88%

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.


golint44%

Golint is a linter for Go source code.

    • butler/credentials.go
    • Line 10: warning: exported function DecryptFolderCredentials should have comment or be unexported (golint)
    • Line 19: warning: exported function ApplyFolderCredentials should have comment or be unexported (golint)
    • butler/folder.go
    • Line 12: warning: exported type JenkinsFolder should have comment or be unexported (golint)
    • Line 25: warning: exported type Credentials should have comment or be unexported (golint)
    • Line 30: warning: exported type UsernamePasswordCredential should have comment or be unexported (golint)
    • Line 38: warning: exported type SecretFileCredential should have comment or be unexported (golint)
    • Line 47: warning: exported function GetFolderURL should have comment or be unexported (golint)
    • Line 68: warning: exported method JenkinsFolder.GetCredentials should have comment or be unexported (golint)
    • Line 72: warning: exported function GetFolder should have comment or be unexported (golint)
    • butler/groovy_scripts.go
    • Line 13: warning: exported function GetDecryptScriptForCredentials should have comment or be unexported (golint)
    • Line 36: warning: exported function GetApplyScriptForCredentials should have comment or be unexported (golint)
    • Line 103: warning: exported function ExecuteGroovyScriptOnJenkins should have comment or be unexported (golint)
    • butler/jobs.go
    • Line 14: warning: exported type JobList should have comment or be unexported (golint)
    • Line 18: warning: exported type JenkinsHTTPClient should have comment or be unexported (golint)
    • Line 22: warning: exported type BasicAuthSettings should have comment or be unexported (golint)
    • Line 27: warning: exported type Job should have comment or be unexported (golint)
    • Line 34: warning: exported method Job.IsFolder should have comment or be unexported (golint)
    • Line 38: warning: exported method Job.GetFolderName should have comment or be unexported (golint)
    • Line 51: warning: exported method JobList.GetSubfolders should have comment or be unexported (golint)
    • Line 59: warning: exported method JobList.GetSubfoldersRecursively should have comment or be unexported (golint)
    • Line 77: warning: exported method Job.GetJobs should have comment or be unexported (golint)
    • Line 105: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 111: warning: exported function NewJob should have comment or be unexported (golint)
    • Line 118: warning: exported method JobList.WithoutFolders should have comment or be unexported (golint)
    • Line 133: warning: exported function NewJobList should have comment or be unexported (golint)
    • Line 137: warning: exported function ListFolders should have comment or be unexported (golint)
    • Line 166: warning: exported function ExportJobs should have comment or be unexported (golint)
    • Line 198: warning: exported function ExportJob should have comment or be unexported (golint)
    • Line 243: warning: exported function GetCrumb should have comment or be unexported (golint)
    • Line 276: warning: exported function ImportJobs should have comment or be unexported (golint)
    • Line 293: warning: exported function ImportJob should have comment or be unexported (golint)
    • butler/plugins.go
    • Line 15: warning: exported type Plugin should have comment or be unexported (golint)
    • Line 21: warning: exported type PluginData should have comment or be unexported (golint)
    • Line 26: warning: exported function GetPlugins should have comment or be unexported (golint)
    • Line 52: warning: exported function ExportPlugins should have comment or be unexported (golint)
    • Line 76: warning: exported function ImportPlugins 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!


misspell77%

Misspell Finds commonly misspelled English words

    • butler/folder_test.go
    • Line 20: warning: "preceeding" is a misspelling of "preceding" (misspell)
    • Line 28: warning: "preceeding" is a misspelling of "preceding" (misspell)
    • Line 44: warning: "preceeding" is a misspelling of "preceding" (misspell)