Preparing report...

Report for github.com/lets-fiware/ngsi-go

(v0.9.0)

A+    Excellent!    Found 38 issues across 213 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!


golint94%

Golint is a linter for Go source code.

    • internal/ngsilib/token_mgr.go
    • Line 65: warning: comment on exported type IdmParams should be of the form "IdmParams ..." (with optional leading article) (golint)
    • Line 98: warning: exported const CPasswordCredentials should have comment (or a comment on this block) or be unexported (golint)
    • Line 293: warning: exported method NGSI.GetTokenInfo should have comment or be unexported (golint)

gocyclo86%

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.

    • internal/ngsicmd/wirecloud_resources.go
    • Line 129: warning: cyclomatic complexity 30 of function wireCloudResourcesList() is high (> 15) (gocyclo)
    • Line 335: warning: cyclomatic complexity 21 of function wireCloudResourceInstall() is high (> 15) (gocyclo)
    • Line 454: warning: cyclomatic complexity 16 of function wireCloudResourceUninstall() is high (> 15) (gocyclo)
    • internal/ngsicmd/copy.go
    • Line 44: warning: cyclomatic complexity 24 of function copy() is high (> 15) (gocyclo)
    • Line 542: warning: cyclomatic complexity 20 of function ldAttribute() is high (> 15) (gocyclo)
    • internal/ngsicmd/entities.go
    • Line 66: warning: cyclomatic complexity 22 of function entitiesListV2() is high (> 15) (gocyclo)
    • Line 170: warning: cyclomatic complexity 21 of function entitiesListLD() is high (> 15) (gocyclo)
    • Line 274: warning: cyclomatic complexity 18 of function entitiesPrint() is high (> 15) (gocyclo)
    • internal/ngsilib/server.go
    • Line 256: warning: cyclomatic complexity 40 of function copyServerInfo() is high (> 15) (gocyclo)
    • Line 321: warning: cyclomatic complexity 24 of function setServerParam() is high (> 15) (gocyclo)
    • Line 128: warning: cyclomatic complexity 20 of function (*NGSI).checkAllParams() is high (> 15) (gocyclo)
    • internal/ngsicmd/admin.go
    • Line 112: warning: cyclomatic complexity 17 of function adminTrace() is high (> 15) (gocyclo)
    • Line 187: warning: cyclomatic complexity 16 of function adminMetrics() is high (> 15) (gocyclo)
    • internal/ngsicmd/reg_proxy.go
    • Line 218: warning: cyclomatic complexity 18 of function regProxyHandler() is high (> 15) (gocyclo)
    • Line 382: warning: cyclomatic complexity 16 of function regProxyConfig() is high (> 15) (gocyclo)

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!