Preparing report...

Report for github.com/gtsteffaniak/filebrowser/backend

(v0.0.0-20250610012133-96cf2d6a5ed6)

A+    Excellent!    Found 29 issues across 97 files

Tweet

gofmt95%

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


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!


gocyclo84%

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.

    • http/preview.go
    • Line 98: warning: cyclomatic complexity 16 of function previewHelperFunc() is high (> 15) (gocyclo)
    • http/oidc.go
    • Line 64: warning: cyclomatic complexity 29 of function oidcCallbackHandler() is high (> 15) (gocyclo)
    • http/resource.go
    • Line 303: warning: cyclomatic complexity 18 of function resourcePatchHandler() is high (> 15) (gocyclo)
    • http/raw.go
    • Line 183: warning: cyclomatic complexity 26 of function rawFilesHandler() is high (> 15) (gocyclo)
    • Line 57: warning: cyclomatic complexity 16 of function addFile() is high (> 15) (gocyclo)
    • cmd/cli.go
    • Line 222: warning: cyclomatic complexity 25 of function createConfig() is high (> 15) (gocyclo)
    • Line 26: warning: cyclomatic complexity 19 of function runCLI() is high (> 15) (gocyclo)
    • indexing/indexingFiles.go
    • Line 91: warning: cyclomatic complexity 22 of function (*Index).indexDirectory() is high (> 15) (gocyclo)
    • Line 319: warning: cyclomatic complexity 22 of function (*Index).shouldSkip() is high (> 15) (gocyclo)
    • http/share.go
    • Line 140: warning: cyclomatic complexity 16 of function sharePostHandler() 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!


misspell88%

Misspell Finds commonly misspelled English words

    • auth/storage.go
    • Line 13: warning: "Auther" is a misspelling of "Author" (misspell)
    • Line 14: warning: "Auther" is a misspelling of "Author" (misspell)
    • Line 50: warning: "Auther" is a misspelling of "Author" (misspell)
    • Line 55: warning: "Auther" is a misspelling of "Author" (misspell)
    • database/storage/bolt/auth.go
    • Line 14: warning: "auther" is a misspelling of "author" (misspell)
    • Line 17: warning: "auther" is a misspelling of "author" (misspell)
    • Line 19: warning: "auther" is a misspelling of "author" (misspell)
    • Line 21: warning: "auther" is a misspelling of "author" (misspell)
    • Line 23: warning: "auther" is a misspelling of "author" (misspell)
    • Line 27: warning: "auther" is a misspelling of "author" (misspell)
    • Line 27: warning: "auther" is a misspelling of "author" (misspell)
    • Line 27: warning: "auther" is a misspelling of "author" (misspell)
    • Line 31: warning: "auther" is a misspelling of "author" (misspell)
    • auth/auth.go
    • Line 15: warning: "Auther" is a misspelling of "Author" (misspell)
    • Line 16: warning: "Auther" is a misspelling of "Author" (misspell)
    • Line 19: warning: "auther" is a misspelling of "author" (misspell)
    • auth/json.go
    • Line 16: warning: "Auther" is a misspelling of "Author" (misspell)
    • Line 22: warning: "auther" is a misspelling of "author" (misspell)