Preparing report...

Report for github.com/VEuPathDB/util-user-dataset-handler-server

(v0.6.7)

A    Great!    Found 38 issues across 92 files

Tweet

gofmt91%

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!


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!


golint64%

Golint is a linter for Go source code.

    • util-user-dataset-handler-server/internal/util/archive/tar.go
    • Line 10: warning: exported const CmdTar should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported function TarExtensions should have comment or be unexported (golint)
    • Line 21: warning: exported function HasTarExtension should have comment or be unexported (golint)
    • Line 33: warning: exported function UnTar should have comment or be unexported (golint)
    • util-user-dataset-handler-server/internal/command/errors.go
    • Line 3: warning: exported function NewUserError should have comment or be unexported (golint)
    • Line 7: warning: exported type UserError should have comment or be unexported (golint)
    • Line 15: warning: exported function NewHandlerError should have comment or be unexported (golint)
    • Line 19: warning: exported type HandlerError should have comment or be unexported (golint)
    • util-user-dataset-handler-server/internal/dataset/ds-info.go
    • Line 10: warning: exported type BaseInfo should have comment or be unexported (golint)
    • Line 16: warning: exported method BaseInfo.Validate should have comment or be unexported (golint)
    • Line 41: warning: exported type File should have comment or be unexported (golint)
    • Line 47: warning: exported type Resource should have comment or be unexported (golint)
    • Line 53: warning: exported method Resource.Validate should have comment or be unexported (golint)
    • util-user-dataset-handler-server/internal/app/status.go
    • Line 4: warning: comment on exported const StatusSuccess should be of the form "StatusSuccess ..." (golint)
    • Line 7: warning: comment on exported const StatusValidateConfFailed should be of the form "StatusValidateConfFailed ..." (golint)
    • Line 10: warning: comment on exported const StatusGenConfFailed should be of the form "StatusGenConfFailed ..." (golint)
    • util-user-dataset-handler-server/internal/service/cache/metadata.go
    • Line 18: warning: exported function HasMetadata should have comment or be unexported (golint)
    • Line 23: warning: exported function GetMetadata should have comment or be unexported (golint)
    • Line 31: warning: exported function PutMetadata should have comment or be unexported (golint)
    • Line 35: warning: exported function DeleteMetadata should have comment or be unexported (golint)
    • Line 39: warning: exported function AllMetadata should have comment or be unexported (golint)
    • util-user-dataset-handler-server/internal/util/archive/zip.go
    • Line 10: warning: exported const CmdUnzip should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported function ZipExtensions should have comment or be unexported (golint)
    • Line 19: warning: exported function HasZipExtension should have comment or be unexported (golint)
    • Line 31: warning: exported function UnZip should have comment or be unexported (golint)
    • util-user-dataset-handler-server/internal/config/cmd-options.go
    • Line 18: warning: exported type FileOptions should have comment or be unexported (golint)
    • Line 24: warning: exported function ParseFileOptions should have comment or be unexported (golint)
    • Line 37: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 44: warning: exported function ParseOptionsReader should have comment or be unexported (golint)
    • util-user-dataset-handler-server/internal/server/svc/validation.go
    • Line 3: warning: exported type ValidationSet should have comment or be unexported (golint)
    • Line 5: warning: exported method ValidationSet.Append should have comment or be unexported (golint)
    • Line 15: warning: exported type ValidationResult should have comment or be unexported (golint)
    • Line 20: warning: exported method ValidationResult.AddError should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


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!