Preparing report...

Report for github.com/n0x1m/gmifs

A+    Excellent!    Found 8 issues across 11 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo100%

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.

No problems detected. Good job!


golint27%

Golint is a linter for Go source code.

    • gmifs/fileserver/fileserver.go
    • Line 19: warning: exported var ErrDirWithoutIndexFile should have comment or be unexported (golint)
    • Line 23: warning: exported function Serve should have comment or be unexported (golint)
    • gmifs/gemini/error.go
    • Line 3: warning: exported type GmiError should have comment or be unexported (golint)
    • Line 8: warning: exported function Error should have comment or be unexported (golint)
    • gmifs/gemini/gemini.go
    • Line 26: warning: exported const StatusInput should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported const Termination should have comment (or a comment on this block) or be unexported (golint)
    • Line 54: warning: exported var ErrServerClosed should have comment or be unexported (golint)
    • Line 65: warning: exported type Request should have comment or be unexported (golint)
    • Line 75: warning: exported type ResponseWriter should have comment or be unexported (golint)
    • Line 80: warning: exported type Handler should have comment or be unexported (golint)
    • Line 95: warning: exported type Server should have comment or be unexported (golint)
    • Line 165: warning: exported method Server.ListenAndServe should have comment or be unexported (golint)
    • gmifs/gemini/interceptor.go
    • Line 54: warning: exported method Interceptor.HasHeader should have comment or be unexported (golint)
    • Line 58: warning: exported method Interceptor.HasBody should have comment or be unexported (golint)
    • Line 62: warning: comment on exported method Interceptor.Flush should be of the form "Flush ..." (golint)
    • gmifs/gemini/mux.go
    • Line 3: warning: comment on exported type Middleware should be of the form "Middleware ..." (with optional leading article) (golint)
    • Line 6: warning: exported type Mux should have comment or be unexported (golint)
    • Line 11: warning: exported function NewMux should have comment or be unexported (golint)
    • Line 20: warning: exported method Mux.Handle should have comment or be unexported (golint)
    • Line 25: warning: exported method Mux.ServeGemini should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!