Preparing report...

Report for github.com/Davincible/goinsta

(v0.0.0-20220425072628-96aad7267204)

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


gofmt100%

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

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.

    • goinsta.go
    • Line 527: warning: cyclomatic complexity 34 of function (*Instagram).OpenApp() is high (> 15) (gocyclo)
    • timeline.go
    • Line 92: warning: cyclomatic complexity 28 of function (*Timeline).Next() is high (> 15) (gocyclo)
    • env.go
    • Line 430: warning: cyclomatic complexity 25 of function addOrUpdateAcc() is high (> 15) (gocyclo)
    • uploads.go
    • Line 600: warning: cyclomatic complexity 17 of function (*UploadOptions).createVideoConfig() is high (> 15) (gocyclo)
    • Line 481: warning: cyclomatic complexity 16 of function (*UploadOptions).createRUploadParams() is high (> 15) (gocyclo)
    • utils.go
    • Line 32: warning: cyclomatic complexity 17 of function toString() is high (> 15) (gocyclo)
    • request.go
    • Line 78: warning: cyclomatic complexity 43 of function (*Instagram).sendRequest() is high (> 15) (gocyclo)
    • Line 356: warning: cyclomatic complexity 22 of function (*Instagram).isError() is high (> 15) (gocyclo)

ineffassign90%

IneffAssign detects ineffectual assignments in Go code.

    • collections.go
    • Line 138: warning: ineffectual assignment to err (ineffassign)
    • Line 247: warning: ineffectual assignment to err (ineffassign)
    • Line 277: warning: ineffectual assignment to err (ineffassign)
    • Line 316: warning: ineffectual assignment to err (ineffassign)
    • Line 355: warning: ineffectual assignment to err (ineffassign)
    • Line 458: warning: ineffectual assignment to err (ineffassign)
    • inbox.go
    • Line 482: warning: ineffectual assignment to err (ineffassign)
    • Line 511: warning: ineffectual assignment to err (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell81%

Misspell Finds commonly misspelled English words

    • igtv.go
    • Line 321: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 330: warning: "occured" is a misspelling of "occurred" (misspell)
    • media.go
    • Line 650: warning: "extentions" is a misspelling of "extensions" (misspell)
    • Line 958: warning: "arguements" is a misspelling of "arguments" (misspell)
    • users.go
    • Line 310: warning: "arguements" is a misspelling of "arguments" (misspell)
    • Line 722: warning: "extention" is a misspelling of "extension" (misspell)
    • collections.go
    • Line 37: warning: "collcetion" is a misspelling of "collections" (misspell)
    • Line 150: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 484: warning: "occured" is a misspelling of "occurred" (misspell)
    • const.go
    • Line 302: warning: "availible" is a misspelling of "available" (misspell)
    • env.go
    • Line 112: warning: "exisitng" is a misspelling of "existing" (misspell)
    • goinsta.go
    • Line 540: warning: "offical" is a misspelling of "official" (misspell)
    • Line 540: warning: "withing" is a misspelling of "within" (misspell)