Preparing report...

Report for github.com/jenkins-x-labs/jwizard

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


gocyclo79%

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.

    • jwizard/pkg/cmd/importcmd/buildpacks.go
    • Line 143: warning: cyclomatic complexity 52 of function (*ImportOptions).InvokeDraftPack() is high (> 15) (gocyclo)
    • Line 49: warning: cyclomatic complexity 16 of function (*ImportOptions).PickBuildPackLibrary() is high (> 15) (gocyclo)
    • jwizard/pkg/cmd/importcmd/import.go
    • Line 214: warning: cyclomatic complexity 64 of function (*ImportOptions).Run() is high (> 15) (gocyclo)
    • Line 962: warning: cyclomatic complexity 24 of function (*ImportOptions).doImport() is high (> 15) (gocyclo)
    • Line 688: warning: cyclomatic complexity 21 of function (*ImportOptions).CreateNewRemoteRepository() is high (> 15) (gocyclo)
    • Line 1061: warning: cyclomatic complexity 19 of function (*ImportOptions).addProwConfig() is high (> 15) (gocyclo)
    • Line 823: warning: cyclomatic complexity 18 of function (*ImportOptions).DiscoverGit() is high (> 15) (gocyclo)
    • Line 545: warning: cyclomatic complexity 17 of function (*ImportOptions).EvaluateBuildPack() is high (> 15) (gocyclo)
    • Line 1542: warning: cyclomatic complexity 16 of function (*ImportOptions).fixMaven() is high (> 15) (gocyclo)

golint75%

Golint is a linter for Go source code.

    • jwizard/pkg/cmd/fakejxfactory/fake_jxfactory.go
    • Line 34: warning: comment on exported function NewFakeFactoryWithObjects should be of the form "NewFakeFactoryWithObjects ..." (golint)
    • Line 56: warning: exported method FakeFactory.WithBearerToken should have comment or be unexported (golint)
    • Line 60: warning: exported method FakeFactory.ImpersonateUser should have comment or be unexported (golint)
    • Line 64: warning: exported method FakeFactory.CreateKubeClient should have comment or be unexported (golint)
    • Line 68: warning: exported method FakeFactory.CreateKubeConfig should have comment or be unexported (golint)
    • Line 72: warning: exported method FakeFactory.CreateJXClient should have comment or be unexported (golint)
    • Line 76: warning: exported method FakeFactory.CreateTektonClient should have comment or be unexported (golint)
    • Line 80: warning: exported method FakeFactory.KubeConfig should have comment or be unexported (golint)
    • Line 84: warning: exported method FakeFactory.LoadConfig should have comment or be unexported (golint)
    • Line 95: warning: exported method FakeFactory.UpdateConfig should have comment or be unexported (golint)
    • jwizard/pkg/cmd/importcmd/import.go
    • Line 181: warning: exported method ImportOptions.AddImportFlags should have comment or be unexported (golint)
    • Line 1603: warning: exported method ImportOptions.DefaultsFromTeamSettings should have comment or be unexported (golint)
    • jwizard/pkg/cmd/importcmd/pack.go
    • Line 26: warning: exported const ChartsDir should have comment (or a comment on this block) or be unexported (golint)
    • Line 156: warning: comment on exported function FromDir should be of the form "FromDir ..." (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!