Preparing report...

Report for github.com/kuttiproject/weave

(v0.0.0-20240810114541-8bb2008ace59)

A+    Excellent!    Found 24 issues across 158 files

Tweet

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!


gofmt98%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo87%

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.

    • plugin/net/cni.go
    • Line 69: warning: cyclomatic complexity 18 of function (*CNIPlugin).CmdAdd() is high (> 15) (gocyclo)
    • net/bridge.go
    • Line 460: warning: cyclomatic complexity 22 of function ConfigureIPTables() is high (> 15) (gocyclo)
    • Line 237: warning: cyclomatic complexity 16 of function EnsureBridge() is high (> 15) (gocyclo)
    • router/sleeve.go
    • Line 629: warning: cyclomatic complexity 16 of function (*sleeveForwarder).run() is high (> 15) (gocyclo)
    • ipam/claim.go
    • Line 40: warning: cyclomatic complexity 22 of function (*claim).Try() is high (> 15) (gocyclo)
    • prog/kube-utils/main.go
    • Line 312: warning: cyclomatic complexity 18 of function main() is high (> 15) (gocyclo)
    • Line 159: warning: cyclomatic complexity 16 of function reclaimPeer() is high (> 15) (gocyclo)
    • Line 96: warning: cyclomatic complexity 16 of function reclaimRemovedPeers() is high (> 15) (gocyclo)
    • net/veth.go
    • Line 258: warning: cyclomatic complexity 24 of function DetachContainer() is high (> 15) (gocyclo)
    • Line 16: warning: cyclomatic complexity 16 of function CreateAndAttachVeth() is high (> 15) (gocyclo)
    • npc/analyser.go
    • Line 13: warning: cyclomatic complexity 43 of function (*ns).analysePolicy() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words

    • net/veth.go
    • Line 52: warning: "advertisments" is a misspelling of "advertisements" (misspell)