Preparing report...

Report for github.com/marekful/webscp/backend

(v0.0.0-20230430072936-3fa9b08ea084)

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo96%

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.

    • cmd/root.go
    • Line 303: warning: cyclomatic complexity 24 of function updateAuthParams() is high (> 15) (gocyclo)
    • Line 204: warning: cyclomatic complexity 18 of function getRunParams() is high (> 15) (gocyclo)
    • cmd/config.go
    • Line 78: warning: cyclomatic complexity 21 of function getAuthentication() is high (> 15) (gocyclo)
    • cmd/users.go
    • Line 91: warning: cyclomatic complexity 17 of function getUserDefaults() is high (> 15) (gocyclo)
    • users/users.go
    • Line 61: warning: cyclomatic complexity 16 of function (*User).Clean() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell83%

Misspell Finds commonly misspelled English words

    • auth/storage.go
    • Line 10: warning: "Auther" is a misspelling of "Author" (misspell)
    • Line 11: warning: "Auther" is a misspelling of "Author" (misspell)
    • Line 26: warning: "Auther" is a misspelling of "Author" (misspell)
    • Line 31: warning: "Auther" is a misspelling of "Author" (misspell)
    • cmd/config_export.go
    • Line 25: warning: "auther" is a misspelling of "author" (misspell)
    • Line 30: warning: "Auther" is a misspelling of "Author" (misspell)
    • Line 30: warning: "auther" is a misspelling of "author" (misspell)
    • cmd/config_import.go
    • Line 22: warning: "Auther" is a misspelling of "Author" (misspell)
    • Line 22: warning: "auther" is a misspelling of "author" (misspell)
    • Line 65: warning: "auther" is a misspelling of "author" (misspell)
    • Line 68: warning: "auther" is a misspelling of "author" (misspell)
    • Line 70: warning: "auther" is a misspelling of "author" (misspell)
    • Line 72: warning: "auther" is a misspelling of "author" (misspell)
    • Line 74: warning: "auther" is a misspelling of "author" (misspell)
    • Line 76: warning: "auther" is a misspelling of "author" (misspell)
    • Line 81: warning: "auther" is a misspelling of "author" (misspell)
    • Line 84: warning: "auther" is a misspelling of "author" (misspell)
    • Line 90: warning: "auther" is a misspelling of "author" (misspell)
    • Line 93: warning: "auther" is a misspelling of "author" (misspell)
    • Line 95: warning: "auther" is a misspelling of "author" (misspell)
    • storage/bolt/auth.go
    • Line 16: warning: "auther" is a misspelling of "author" (misspell)
    • Line 20: warning: "auther" is a misspelling of "author" (misspell)
    • Line 22: warning: "auther" is a misspelling of "author" (misspell)
    • Line 24: warning: "auther" is a misspelling of "author" (misspell)
    • Line 26: warning: "auther" is a misspelling of "author" (misspell)
    • Line 28: warning: "auther" is a misspelling of "author" (misspell)
    • Line 33: warning: "auther" is a misspelling of "author" (misspell)
    • Line 33: warning: "auther" is a misspelling of "author" (misspell)
    • Line 33: warning: "auther" is a misspelling of "author" (misspell)
    • Line 37: warning: "auther" is a misspelling of "author" (misspell)
    • http/static.go
    • Line 24: warning: "auther" is a misspelling of "author" (misspell)
    • Line 97: warning: "auther" is a misspelling of "author" (misspell)
    • Line 112: warning: "auther" is a misspelling of "author" (misspell)
    • cmd/config_init.go
    • Line 29: warning: "auther" is a misspelling of "author" (misspell)
    • Line 60: warning: "auther" is a misspelling of "author" (misspell)
    • Line 68: warning: "auther" is a misspelling of "author" (misspell)
    • storage/bolt/importer/conf.go
    • Line 155: warning: "auther" is a misspelling of "author" (misspell)
    • Line 158: warning: "auther" is a misspelling of "author" (misspell)
    • Line 161: warning: "auther" is a misspelling of "author" (misspell)
    • Line 172: warning: "auther" is a misspelling of "author" (misspell)
    • Line 175: warning: "auther" is a misspelling of "author" (misspell)
    • Line 178: warning: "auther" is a misspelling of "author" (misspell)
    • Line 188: warning: "auther" is a misspelling of "author" (misspell)
    • cmd/config.go
    • Line 83: warning: "auther" is a misspelling of "author" (misspell)
    • Line 95: warning: "auther" is a misspelling of "author" (misspell)
    • Line 99: warning: "auther" is a misspelling of "author" (misspell)
    • Line 127: warning: "auther" is a misspelling of "author" (misspell)
    • Line 147: warning: "auther" is a misspelling of "author" (misspell)
    • Line 161: warning: "auther" is a misspelling of "author" (misspell)
    • Line 164: warning: "auther" is a misspelling of "author" (misspell)
    • Line 168: warning: "auther" is a misspelling of "author" (misspell)
    • Line 171: warning: "auther" is a misspelling of "author" (misspell)
    • Line 214: warning: "auther" is a misspelling of "author" (misspell)
    • cmd/config_set.go
    • Line 68: warning: "auther" is a misspelling of "author" (misspell)
    • Line 72: warning: "auther" is a misspelling of "author" (misspell)
    • Line 72: warning: "auther" is a misspelling of "author" (misspell)
    • Line 74: warning: "auther" is a misspelling of "author" (misspell)
    • Line 80: warning: "auther" is a misspelling of "author" (misspell)
    • cmd/root.go
    • Line 50: warning: "auther" is a misspelling of "author" (misspell)
    • Line 272: warning: "auther" is a misspelling of "author" (misspell)
    • Line 281: warning: "auther" is a misspelling of "author" (misspell)
    • Line 289: warning: "auther" is a misspelling of "author" (misspell)
    • Line 312: warning: "auther" is a misspelling of "author" (misspell)
    • Line 346: warning: "auther" is a misspelling of "author" (misspell)
    • Line 365: warning: "auther" is a misspelling of "author" (misspell)
    • Line 371: warning: "auther" is a misspelling of "author" (misspell)
    • Line 383: warning: "auther" is a misspelling of "author" (misspell)
    • Line 395: warning: "auther" is a misspelling of "author" (misspell)
    • Line 398: warning: "auther" is a misspelling of "author" (misspell)
    • auth/auth.go
    • Line 10: warning: "Auther" is a misspelling of "Author" (misspell)
    • Line 11: warning: "Auther" is a misspelling of "Author" (misspell)
    • Line 14: warning: "auther" is a misspelling of "author" (misspell)