Report for github.com/americanbinary/vpp

(v0.0.0-20231220041312-2d08fe434792)

A+    Excellent!    Found 49 issues across 345 files

Tweet

gofmt96%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo88%

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.

    • plugins/ipam/ipam.go
    • Line 223: warning: cyclomatic complexity 31 of function (*IPAM).Resync() is high (> 15) (gocyclo)
    • Line 480: warning: cyclomatic complexity 30 of function (*IPAM).Update() is high (> 15) (gocyclo)
    • plugins/ipnet/node.go
    • Line 104: warning: cyclomatic complexity 19 of function (*IPNet).otherNodeConnectivityConfig() is high (> 15) (gocyclo)
    • Line 686: warning: cyclomatic complexity 17 of function (*IPNet).customNetworkConfig() is high (> 15) (gocyclo)
    • mock/aclengine/aclengine_mock.go
    • Line 503: warning: cyclomatic complexity 39 of function (*MockACLEngine).evalACL() is high (> 15) (gocyclo)
    • Line 151: warning: cyclomatic complexity 16 of function (*MockACLEngine).ApplyTxn() is high (> 15) (gocyclo)
    • Line 424: warning: cyclomatic complexity 16 of function (*MockACLEngine).testConnection() is high (> 15) (gocyclo)
    • plugins/contivconf/contivconf.go
    • Line 265: warning: cyclomatic complexity 51 of function (*ContivConf).Init() is high (> 15) (gocyclo)
    • Line 757: warning: cyclomatic complexity 31 of function (*ContivConf).reloadNodeInterfaces() is high (> 15) (gocyclo)
    • Line 970: warning: cyclomatic complexity 18 of function (*ContivConf).loadSTNHostConfig() is high (> 15) (gocyclo)
    • plugins/policy/cache/match_expression.go
    • Line 144: warning: cyclomatic complexity 29 of function (*PolicyCache).getPodsByNsMatchExpression() is high (> 15) (gocyclo)
    • Line 33: warning: cyclomatic complexity 26 of function (*PolicyCache).getMatchExpressionPodsInsideNs() is high (> 15) (gocyclo)
    • plugins/crd/validator/l2/l2_validator.go
    • Line 150: warning: cyclomatic complexity 28 of function (*Validator).ValidateBridgeDomains() is high (> 15) (gocyclo)
    • Line 355: warning: cyclomatic complexity 23 of function (*Validator).ValidateL2FibEntries() is high (> 15) (gocyclo)
    • Line 575: warning: cyclomatic complexity 19 of function (*Validator).ValidatePodInfo() is high (> 15) (gocyclo)
    • mock/natplugin/natplugin_mock.go
    • Line 87: warning: cyclomatic complexity 32 of function (*MockNatPlugin).ApplyTxn() is high (> 15) (gocyclo)
    • Line 313: warning: cyclomatic complexity 20 of function (*MockNatPlugin).dnatToStaticMappings() is high (> 15) (gocyclo)
    • Line 250: warning: cyclomatic complexity 17 of function (*MockNatPlugin).putGlobalConfig() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!