Preparing report...

Report for github.com/loopo-org/goinsta/v3

(v3.0.0-20221226104813-230307968a49)

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


gofmt97%

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


gocyclo89%

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.

    • timeline.go
    • Line 93: warning: cyclomatic complexity 28 of function (*Timeline).Next() is high (> 15) (gocyclo)
    • env.go
    • Line 429: warning: cyclomatic complexity 25 of function addOrUpdateAcc() is high (> 15) (gocyclo)
    • utils.go
    • Line 32: warning: cyclomatic complexity 17 of function toString() is high (> 15) (gocyclo)
    • request.go
    • Line 79: warning: cyclomatic complexity 43 of function (*Instagram).sendRequest() is high (> 15) (gocyclo)
    • Line 367: warning: cyclomatic complexity 22 of function (*Instagram).isError() is high (> 15) (gocyclo)
    • goinsta.go
    • Line 565: warning: cyclomatic complexity 34 of function (*Instagram).OpenApp() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell78%

Misspell Finds commonly misspelled English words

    • collections.go
    • Line 37: warning: "collcetion" is a misspelling of "collections" (misspell)
    • Line 150: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 517: warning: "occured" is a misspelling of "occurred" (misspell)
    • const.go
    • Line 305: warning: "availible" is a misspelling of "available" (misspell)
    • igtv.go
    • Line 321: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 330: warning: "occured" is a misspelling of "occurred" (misspell)
    • env.go
    • Line 111: warning: "exisitng" is a misspelling of "existing" (misspell)
    • goinsta.go
    • Line 577: warning: "offical" is a misspelling of "official" (misspell)
    • Line 577: warning: "withing" is a misspelling of "within" (misspell)
    • media.go
    • Line 656: warning: "extentions" is a misspelling of "extensions" (misspell)
    • Line 969: warning: "arguements" is a misspelling of "arguments" (misspell)
    • users.go
    • Line 330: warning: "arguements" is a misspelling of "arguments" (misspell)
    • Line 772: warning: "extention" is a misspelling of "extension" (misspell)