Preparing report...

Report for gitea.com/goftp/server

A+    Excellent!    Found 3 issues across 21 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!


golint95%

Golint is a linter for Go source code.

    • /gitea.com/goftp/server/compat.go
    • Line 22: warning: comment on exported type Auth should be of the form "Auth ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type Command should be of the form "Command ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type Conn should be of the form "Conn ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type DataSocket should be of the form "DataSocket ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type DiscardLogger should be of the form "DiscardLogger ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type Driver should be of the form "Driver ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type DriverFactory should be of the form "DriverFactory ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type FileInfo should be of the form "FileInfo ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type Logger should be of the form "Logger ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type MultipleDriver should be of the form "MultipleDriver ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type MultipleDriverFactory should be of the form "MultipleDriverFactory ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type Notifier should be of the form "Notifier ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type NullNotifier should be of the form "NullNotifier ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type Perm should be of the form "Perm ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type Server should be of the form "Server ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type ServerOpts should be of the form "ServerOpts ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type SimpleAuth should be of the form "SimpleAuth ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type SimplePerm should be of the form "SimplePerm ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type StdLogger should be of the form "StdLogger ..." (with optional leading article) (golint)
    • Line 57: warning: comment on exported type FileDriver should be of the form "FileDriver ..." (with optional leading article) (golint)
    • Line 57: warning: comment on exported type FileDriverFactory should be of the form "FileDriverFactory ..." (with optional leading article) (golint)
    • Line 65: warning: comment on exported type MinioDriver should be of the form "MinioDriver ..." (with optional leading article) (golint)
    • Line 65: warning: comment on exported type MinioDriverFactory should be of the form "MinioDriverFactory ..." (with optional leading article) (golint)
    • Line 73: warning: comment on exported var NewMinioDriverFactory should be of the form "NewMinioDriverFactory ..." (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!


misspell90%

Misspell Finds commonly misspelled English words