Preparing report...

Report for github.com/lxlxw/s3-micro

A+    Excellent!    Found 18 issues across 24 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!


golint25%

Golint is a linter for Go source code.

    • s3-micro/api/service/bucket.go
    • Line 9: warning: comment on exported function CreateBucket should be of the form "CreateBucket ..." (golint)
    • Line 21: warning: comment on exported function DeleteBucket should be of the form "DeleteBucket ..." (golint)
    • Line 33: warning: comment on exported function ListBucket should be of the form "ListBucket ..." (golint)
    • s3-micro/api/service/object.go
    • Line 9: warning: comment on exported function PutObject should be of the form "PutObject ..." (golint)
    • Line 36: warning: comment on exported function GetObject should be of the form "GetObject ..." (golint)
    • Line 47: warning: comment on exported function GetObjectPresignedUrl should be of the form "GetObjectPresignedUrl ..." (golint)
    • Line 58: warning: comment on exported function PutObjectPresignedUrl should be of the form "PutObjectPresignedUrl ..." (golint)
    • s3-micro/api/controller/config.go
    • Line 11: warning: comment on exported method ApiService.UpdateConfigStoreInfo should be of the form "UpdateConfigStoreInfo ..." (golint)
    • Line 17: warning: comment on exported method ApiService.GetConfigStoreInfo should be of the form "GetConfigStoreInfo ..." (golint)
    • s3-micro/api/controller/object.go
    • Line 11: warning: comment on exported method ApiService.PutObject should be of the form "PutObject ..." (golint)
    • Line 17: warning: comment on exported method ApiService.GetObject should be of the form "GetObject ..." (golint)
    • Line 23: warning: comment on exported method ApiService.GetObjectPresignedUrl should be of the form "GetObjectPresignedUrl ..." (golint)
    • Line 29: warning: comment on exported method ApiService.PutObjectPresignedUrl should be of the form "PutObjectPresignedUrl ..." (golint)
    • s3-micro/cmd/version.go
    • Line 9: warning: exported var Version should have comment or be unexported (golint)
    • Line 11: warning: exported function ShowVersion should have comment or be unexported (golint)
    • s3-micro/pkg/util/config.go
    • Line 13: warning: exported type Config should have comment or be unexported (golint)
    • Line 17: warning: exported type S3Config should have comment or be unexported (golint)
    • Line 29: warning: comment on exported function EncodeConfig should be of the form "EncodeConfig ..." (golint)
    • Line 38: warning: comment on exported function ParseConfigFile should be of the form "ParseConfigFile ..." (golint)
    • Line 51: warning: comment on exported function GetConfig should be of the form "GetConfig ..." (golint)
    • Line 56: warning: comment on exported function SetConfig should be of the form "SetConfig ..." (golint)
    • s3-micro/api/service/config.go
    • Line 9: warning: comment on exported function UpdateConfigStoreInfo should be of the form "UpdateConfigStoreInfo ..." (golint)
    • Line 32: warning: comment on exported function GetConfigStoreInfo should be of the form "GetConfigStoreInfo ..." (golint)
    • s3-micro/api/rpcserver/http.go
    • Line 20: warning: exported var ServerHttpPort should have comment or be unexported (golint)
    • Line 24: warning: comment on exported function RunHttpServer should be of the form "RunHttpServer ..." (golint)
    • s3-micro/pkg/util/file.go
    • Line 5: warning: comment on exported function PathExists should be of the form "PathExists ..." (golint)
    • Line 17: warning: comment on exported function GetProjectPath should be of the form "GetProjectPath ..." (golint)
    • Line 24: warning: comment on exported function GetConfigPath should be of the form "GetConfigPath ..." (golint)
    • Line 35: warning: comment on exported function UpdateConfigFile should be of the form "UpdateConfigFile ..." (golint)
    • s3-micro/api/controller/bucket.go
    • Line 11: warning: comment on exported method ApiService.CreateBucket should be of the form "CreateBucket ..." (golint)
    • Line 17: warning: exported method ApiService.DeleteBucket should have comment or be unexported (golint)
    • Line 22: warning: exported method ApiService.ListBucket should have comment or be unexported (golint)
    • s3-micro/pkg/s3/object.go
    • Line 13: warning: comment on exported method S3.GetObject should be of the form "GetObject ..." (golint)
    • Line 29: warning: comment on exported method S3.HeadObject should be of the form "HeadObject ..." (golint)
    • Line 41: warning: comment on exported method S3.HeadObjectPresignedUrl should be of the form "HeadObjectPresignedUrl ..." (golint)
    • Line 54: warning: comment on exported method S3.PutObject should be of the form "PutObject ..." (golint)
    • Line 71: warning: comment on exported method S3.GetObjectPresignedUrl should be of the form "GetObjectPresignedUrl ..." (golint)
    • Line 84: warning: comment on exported method S3.PutObjectPresignedUrl should be of the form "PutObjectPresignedUrl ..." (golint)
    • s3-micro/pkg/s3/session.go
    • Line 16: warning: comment on exported type S3Conf should be of the form "S3Conf ..." (with optional leading article) (golint)
    • Line 48: warning: comment on exported function GetS3Conf should be of the form "GetS3Conf ..." (golint)
    • s3-micro/api/rpcserver/tcp.go
    • Line 17: warning: exported var ServerPort should have comment or be unexported (golint)
    • Line 25: warning: exported function NewStoreApiService should have comment or be unexported (golint)
    • Line 29: warning: comment on exported function RunServer should be of the form "RunServer ..." (golint)
    • Line 48: warning: comment on exported function UnaryInterceptorChain should be of the form "UnaryInterceptorChain ..." (golint)
    • s3-micro/pkg/s3/bucket.go
    • Line 8: warning: comment on exported method S3.CreateBucket should be of the form "CreateBucket ..." (golint)
    • Line 20: warning: exported method S3.DeleteBucket should have comment or be unexported (golint)
    • Line 30: warning: exported method S3.ListBucket should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!