Preparing report...

Report for github.com/v8platform/updateApiClient

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


gocyclo100%

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.

No problems detected. Good job!


golint9%

Golint is a linter for Go source code.

    • updateApiClient/client.go
    • Line 1: warning: don't use MixedCaps in package name; updateApiClient should be updateapiclient (golint)
    • Line 22: warning: exported type Client should have comment or be unexported (golint)
    • Line 29: warning: exported function NewClient should have comment or be unexported (golint)
    • updateApiClient/error.go
    • Line 1: warning: don't use MixedCaps in package name; updateApiClient should be updateapiclient (golint)
    • Line 3: warning: exported type RequestError should have comment or be unexported (golint)
    • updateApiClient/patches.go
    • Line 1: warning: don't use MixedCaps in package name; updateApiClient should be updateapiclient (golint)
    • Line 9: warning: exported type PatchesInfoRequest should have comment or be unexported (golint)
    • Line 14: warning: exported type PatchesInfoResponse should have comment or be unexported (golint)
    • Line 26: warning: exported type PatchUpdate should have comment or be unexported (golint)
    • Line 37: warning: exported method Client.GetPatchesInfo should have comment or be unexported (golint)
    • Line 45: warning: exported method Client.GetPatchesInfoRequest should have comment or be unexported (golint)
    • updateApiClient/patchesGetFiles.go
    • Line 1: warning: don't use MixedCaps in package name; updateApiClient should be updateapiclient (golint)
    • Line 13: warning: exported type PatchesGetFilesRequest should have comment or be unexported (golint)
    • Line 19: warning: exported type PatchesGetFilesResponse should have comment or be unexported (golint)
    • Line 24: warning: exported type PatchDistributionData should have comment or be unexported (golint)
    • Line 32: warning: exported type PatchDistributionFile should have comment or be unexported (golint)
    • Line 44: warning: exported method Client.GetPatchesFilesInfo should have comment or be unexported (golint)
    • Line 68: warning: exported method Client.GetPatchDistributionData should have comment or be unexported (golint)
    • updateApiClient/programNames.go
    • Line 1: warning: don't use MixedCaps in package name; updateApiClient should be updateapiclient (golint)
    • Line 4: warning: exported const Accounting should have comment (or a comment on this block) or be unexported (golint)
    • updateApiClient/types.go
    • Line 1: warning: don't use MixedCaps in package name; updateApiClient should be updateapiclient (golint)
    • Line 5: warning: exported type ErrorResponse should have comment or be unexported (golint)
    • Line 14: warning: exported type ProgramVersion should have comment or be unexported (golint)
    • updateApiClient/update.go
    • Line 1: warning: don't use MixedCaps in package name; updateApiClient should be updateapiclient (golint)
    • Line 12: warning: exported type ConfigurationUpdateData should have comment or be unexported (golint)
    • Line 22: warning: exported type ConfigurationUpdateFile should have comment or be unexported (golint)
    • Line 27: warning: exported type PlatformUpdateFile should have comment or be unexported (golint)
    • Line 31: warning: exported type UpdateRequest should have comment or be unexported (golint)
    • Line 39: warning: exported method Client.GetUpdate should have comment or be unexported (golint)
    • Line 65: warning: exported method Client.GetPlatformUpdate should have comment or be unexported (golint)
    • Line 91: warning: exported method Client.GetConfigurationUpdateData should have comment or be unexported (golint)
    • Line 105: warning: exported method Client.GetPlatformUpdateData should have comment or be unexported (golint)
    • Line 118: warning: exported type UpdateResponse should have comment or be unexported (golint)
    • updateApiClient/updateInfo.go
    • Line 1: warning: don't use MixedCaps in package name; updateApiClient should be updateapiclient (golint)
    • Line 10: warning: exported const NewConfigurationAndOrPlatformUpdateType should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type UpdateInfoRequest should have comment or be unexported (golint)
    • Line 23: warning: exported method Client.GetUpdateInfo should have comment or be unexported (golint)
    • Line 60: warning: exported type UpdateInfoResponse should have comment or be unexported (golint)
    • Line 76: warning: exported type ConfigurationUpdateInfo should have comment or be unexported (golint)
    • Line 86: warning: exported type PlatformUpdateInfo should have comment or be unexported (golint)
    • updateApiClient/utils.go
    • Line 1: warning: don't use MixedCaps in package name; updateApiClient should be updateapiclient (golint)
    • Line 12: warning: exported function UnzipFile should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!