Preparing report...

Report for github.com/jenkins-x/jx-api

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


gocyclo98%

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.


golint81%

Golint is a linter for Go source code.

    • jx-api/pkg/apis/core/v4beta1/requirements.go
    • Line 37: warning: exported const RequirementsName should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: comment on exported const DefaultNamespace should be of the form "DefaultNamespace ..." (golint)
    • Line 269: warning: exported type AzureDNSConfig should have comment or be unexported (golint)
    • Line 275: warning: exported type AzureSecretConfig should have comment or be unexported (golint)
    • Line 279: warning: exported type AzureStorageConfig should have comment or be unexported (golint)
    • Line 361: warning: comment on exported type LegacyStorageConfig should be of the form "LegacyStorageConfig ..." (with optional leading article) (golint)
    • Line 373: warning: comment on exported type LegacyStorageEntryConfig should be of the form "LegacyStorageEntryConfig ..." (with optional leading article) (golint)
    • Line 582: warning: exported function IsNewRequirementsFile should have comment or be unexported (golint)
    • Line 589: warning: comment on exported function LoadRequirementsConfigFileNoDefaults should be of the form "LoadRequirementsConfigFileNoDefaults ..." (golint)
    • Line 671: warning: exported method Requirements.SaveConfig should have comment or be unexported (golint)
    • Line 968: warning: exported method RequirementsConfig.GetStorageURL should have comment or be unexported (golint)
    • Line 978: warning: exported method RequirementsConfig.AddOrUpdateStorageURL should have comment or be unexported (golint)
    • Line 994: warning: exported method RequirementsConfig.RemoveStorageURL should have comment or be unexported (golint)
    • jx-api/pkg/apis/jenkins.io/v1/types_environment.go
    • Line 190: warning: comment on exported type StorageLocation should be of the form "StorageLocation ..." (with optional leading article) (golint)
    • Line 198: warning: comment on exported type QuickStartLocation should be of the form "QuickStartLocation ..." (with optional leading article) (golint)
    • jx-api/pkg/util/dirs.go
    • Line 22: warning: exported function ConfigDir should have comment or be unexported (golint)
    • Line 36: warning: exported function HomeDir should have comment or be unexported (golint)
    • jx-api/pkg/util/files.go
    • Line 11: warning: exported const DefaultWritePermissions should have comment (or a comment on this block) 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!