Preparing report...

Report for github.com/contiv/vpp

(v2.1.4+incompatible)

A+    Excellent!    Found 59 issues across 279 files

Tweet

gofmt89%

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.

    • mock/sessionrules/sessionrules_mock.go
    • Line 231: warning: cyclomatic complexity 19 of function (*MockSessionRules).msgReplyHandler() is high (> 15) (gocyclo)
    • Line 137: warning: cyclomatic complexity 18 of function (*MockSessionRules).hasRule() is high (> 15) (gocyclo)
    • plugins/contivconf/contivconf.go
    • Line 275: warning: cyclomatic complexity 33 of function (*ContivConf).Init() is high (> 15) (gocyclo)
    • Line 666: warning: cyclomatic complexity 31 of function (*ContivConf).reloadNodeInterfaces() 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)
    • plugins/crd/validator/l2/l2_validator.go
    • Line 149: warning: cyclomatic complexity 28 of function (*Validator).ValidateBridgeDomains() is high (> 15) (gocyclo)
    • Line 354: warning: cyclomatic complexity 23 of function (*Validator).ValidateL2FibEntries() is high (> 15) (gocyclo)
    • Line 574: warning: cyclomatic complexity 19 of function (*Validator).ValidatePodInfo() 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)
    • mock/aclengine/aclengine_mock.go
    • Line 503: warning: cyclomatic complexity 39 of function (*MockACLEngine).evalACL() is high (> 15) (gocyclo)
    • Line 424: warning: cyclomatic complexity 16 of function (*MockACLEngine).testConnection() is high (> 15) (gocyclo)
    • Line 151: warning: cyclomatic complexity 16 of function (*MockACLEngine).ApplyTxn() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell99%

Misspell Finds commonly misspelled English words