Preparing report...

Report for github.com/efellowsbg/go-bigip

(v0.0.0-20240722113140-7ee34a90d810)

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


gofmt95%

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

    • ltm.go
    • Line 1: warning: file is not gofmted with -s (gofmt)

gocyclo85%

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.

    • as3bigip.go
    • Line 98: warning: cyclomatic complexity 24 of function (*BigIP).PostAs3Bigip() is high (> 15) (gocyclo)
    • Line 291: warning: cyclomatic complexity 19 of function (*BigIP).GetAs3() is high (> 15) (gocyclo)
    • Line 180: warning: cyclomatic complexity 19 of function (*BigIP).DeleteAs3Bigip() is high (> 15) (gocyclo)
    • bigiq.go
    • Line 356: warning: cyclomatic complexity 23 of function (*BigIP).GetAs3Bigiq() is high (> 15) (gocyclo)
    • bigip.go
    • Line 143: warning: cyclomatic complexity 16 of function NewTokenSession() is high (> 15) (gocyclo)
    • Line 281: warning: cyclomatic complexity 16 of function (*BigIP).APICall() is high (> 15) (gocyclo)

ineffassign90%

IneffAssign detects ineffectual assignments in Go code.

    • as3bigip.go
    • Line 108: warning: ineffectual assignment to err (ineffassign)
    • Line 190: warning: ineffectual assignment to err (ineffassign)
    • Line 263: warning: ineffectual assignment to err (ineffassign)
    • Line 108: warning: ineffectual assignment to err (ineffassign)
    • Line 190: warning: ineffectual assignment to err (ineffassign)
    • Line 263: warning: ineffectual assignment to err (ineffassign)
    • ltm.go
    • Line 2944: warning: ineffectual assignment to values (ineffassign)
    • Line 3031: warning: ineffectual assignment to values (ineffassign)
    • Line 3056: warning: ineffectual assignment to values (ineffassign)
    • Line 2944: warning: ineffectual assignment to values (ineffassign)
    • Line 3031: warning: ineffectual assignment to values (ineffassign)
    • Line 3056: warning: ineffectual assignment to values (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell70%

Misspell Finds commonly misspelled English words

    • as3bigip.go
    • Line 140: warning: "Sucessfully" is a misspelling of "Successfully" (misspell)
    • Line 152: warning: "Sucessfully" is a misspelling of "Successfully" (misspell)
    • Line 215: warning: "Sucessfully" is a misspelling of "Successfully" (misspell)
    • Line 225: warning: "Sucessfully" is a misspelling of "Successfully" (misspell)
    • Line 272: warning: "Sucessfully" is a misspelling of "Successfully" (misspell)
    • bigiq.go
    • Line 344: warning: "Sucessfully" is a misspelling of "Successfully" (misspell)
    • fastbigip.go
    • Line 384: warning: "Sucessfully" is a misspelling of "Successfully" (misspell)
    • Line 423: warning: "Sucessfully" is a misspelling of "Successfully" (misspell)
    • Line 457: warning: "Sucessfully" is a misspelling of "Successfully" (misspell)
    • sys.go
    • Line 857: warning: "Commiting" is a misspelling of "Committing" (misspell)
    • app.go
    • Line 142: warning: "successfull" is a misspelling of "successful" (misspell)
    • Line 150: warning: "successfull" is a misspelling of "successful" (misspell)
    • Line 166: warning: "successfull" is a misspelling of "successful" (misspell)
    • Line 174: warning: "successfull" is a misspelling of "successful" (misspell)