Preparing report...

Report for github.com/f5devcentral/terraform-provider-bigip

A+    Excellent!    Found 45 issues across 79 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!


gocyclo96%

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.


golint45%

Golint is a linter for Go source code.

    • terraform-provider-bigip/bigip/resource_bigip_as3.go
    • Line 1: warning: package comment should be of the form "Package bigip ..." (golint)
    • Line 48: warning: don't use underscores in Go names; var client_bigip should be clientBigip (golint)
    • Line 50: warning: don't use underscores in Go names; var as3_json should be as3JSON (golint)
    • Line 78: warning: don't use underscores in Go names; var client_bigip should be clientBigip (golint)
    • Line 106: warning: don't use underscores in Go names; var client_bigip should be clientBigip (golint)
    • Line 135: warning: don't use underscores in Go names; var client_bigip should be clientBigip (golint)
    • Line 136: warning: don't use underscores in Go names; var as3_json should be as3JSON (golint)
    • Line 162: warning: don't use underscores in Go names; var client_bigip should be clientBigip (golint)
    • terraform-provider-bigip/bigip/resource_bigip_ltm_virtual_server.go
    • Line 1: warning: package comment should be of the form "Package bigip ..." (golint)
    • Line 306: warning: don't use underscores in Go names; var profile_names should be profileNames (golint)
    • Line 307: warning: don't use underscores in Go names; var client_profile_names should be clientProfileNames (golint)
    • Line 308: warning: don't use underscores in Go names; var server_profile_names should be serverProfileNames (golint)
    • Line 394: warning: don't use underscores in Go names; var cfg_rules should be cfgRules (golint)
    • terraform-provider-bigip/bigip/provider.go
    • Line 1: warning: package comment should be of the form "Package bigip ..." (golint)
    • Line 18: warning: exported const DEFAULT_PARTITION should have comment or be unexported (golint)
    • Line 20: warning: exported function Provider should have comment or be unexported (golint)
    • terraform-provider-bigip/bigip/resource_bigip_ltm_node.go
    • Line 1: warning: package comment should be of the form "Package bigip ..." (golint)
    • Line 124: warning: don't use underscores in Go names; var rate_limit should be rateLimit (golint)
    • Line 125: warning: don't use underscores in Go names; var connection_limit should be connectionLimit (golint)
    • Line 126: warning: don't use underscores in Go names; var dynamic_ratio should be dynamicRatio (golint)
    • Line 148: warning: don't use underscores in Go names; var address_family should be addressFamily (golint)
    • terraform-provider-bigip/bigip/config.go
    • Line 1: warning: package comment should be of the form "Package bigip ..." (golint)
    • Line 16: warning: exported type Config should have comment or be unexported (golint)
    • Line 24: warning: exported method Config.Client should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell94%

Misspell Finds commonly misspelled English words