Preparing report...

Report for github.com/kgrvamsi/storageapi

A+    Excellent!    Found 3 issues across 4 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!


golint25%

Golint is a linter for Go source code.

    • storageapi/helper.go
    • Line 70: warning: comment on exported method StorageClient.QueryData should be of the form "QueryData ..." (golint)
    • storageapi/pure.go
    • Line 5: warning: comment on exported method StorageClient.FetchArrayInfo should be of the form "FetchArrayInfo ..." (golint)
    • Line 22: warning: comment on exported method StorageClient.FetchPhoneHomeInfo should be of the form "FetchPhoneHomeInfo ..." (golint)
    • Line 39: warning: comment on exported method StorageClient.FetchNTPInfo should be of the form "FetchNTPInfo ..." (golint)
    • Line 56: warning: comment on exported method StorageClient.FetchHardwareInfo should be of the form "FetchHardwareInfo ..." (golint)
    • Line 73: warning: comment on exported method StorageClient.FetchNetworkInfo should be of the form "FetchNetworkInfo ..." (golint)
    • Line 90: warning: comment on exported method StorageClient.FetchDNSInfo should be of the form "FetchDNSInfo ..." (golint)
    • Line 107: warning: comment on exported method StorageClient.FetchSNMPInfo should be of the form "FetchSNMPInfo ..." (golint)
    • storageapi/types.go
    • Line 3: warning: exported type Auth should have comment or be unexported (golint)
    • Line 17: warning: comment on exported type ArrayInfo should be of the form "ArrayInfo ..." (with optional leading article) (golint)
    • Line 25: warning: comment on exported type PhoneHomeInfo should be of the form "PhoneHomeInfo ..." (with optional leading article) (golint)
    • Line 30: warning: comment on exported type NTPServerInfo should be of the form "NTPServerInfo ..." (with optional leading article) (golint)
    • Line 35: warning: comment on exported type HardwareInfo should be of the form "HardwareInfo ..." (with optional leading article) (golint)
    • Line 47: warning: comment on exported type NetworkInfo should be of the form "NetworkInfo ..." (with optional leading article) (golint)
    • Line 62: warning: comment on exported type DNSInfo should be of the form "DNSInfo ..." (with optional leading article) (golint)
    • Line 68: warning: comment on exported type SNMPInfo should be of the form "SNMPInfo ..." (with optional leading article) (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!