Preparing report...

Report for github.com/Funmi4194/goinsta

(v0.0.0-20230612051159-0053a3c329f7)

A    Great!    Found 26 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!


gofmt50%

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

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

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.

    • 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 597: warning: cyclomatic complexity 34 of function (*Instagram).OpenApp() is high (> 15) (gocyclo)
    • 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)

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

    • env.go
    • Line 111: warning: "exisitng" is a misspelling of "existing" (misspell)
    • goinsta.go
    • Line 609: warning: "offical" is a misspelling of "official" (misspell)
    • Line 609: warning: "withing" is a misspelling of "within" (misspell)
    • media.go
    • Line 666: warning: "extentions" is a misspelling of "extensions" (misspell)
    • Line 979: warning: "arguements" is a misspelling of "arguments" (misspell)
    • 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)
    • users.go
    • Line 332: warning: "arguements" is a misspelling of "arguments" (misspell)
    • Line 770: warning: "extention" is a misspelling of "extension" (misspell)
    • igtv.go
    • Line 321: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 330: warning: "occured" is a misspelling of "occurred" (misspell)