Preparing report...

Report for github.com/easyops-cn/giraffe-micro

A+    Excellent!    Found 4 issues across 12 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!


gocyclo91%

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.


golint75%

Golint is a linter for Go source code.

    • giraffe-micro/test/mock/mock_restv2/mock_data.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 8: warning: exported type GetDetailRequest should have comment or be unexported (golint)
    • Line 11: warning: don't use underscores in Go names; struct field XXX_NoUnkeyedLiteral should be XXXNoUnkeyedLiteral (golint)
    • Line 12: warning: don't use underscores in Go names; struct field XXX_unrecognized should be XXXUnrecognized (golint)
    • Line 13: warning: don't use underscores in Go names; struct field XXX_sizecache should be XXXSizecache (golint)
    • Line 16: warning: exported method GetDetailRequest.Reset should have comment or be unexported (golint)
    • Line 18: warning: exported method GetDetailRequest.ProtoMessage should have comment or be unexported (golint)
    • Line 20: warning: exported type DeleteInstanceRequest should have comment or be unexported (golint)
    • Line 23: warning: don't use underscores in Go names; struct field XXX_NoUnkeyedLiteral should be XXXNoUnkeyedLiteral (golint)
    • Line 24: warning: don't use underscores in Go names; struct field XXX_unrecognized should be XXXUnrecognized (golint)
    • Line 25: warning: don't use underscores in Go names; struct field XXX_sizecache should be XXXSizecache (golint)
    • Line 28: warning: exported method DeleteInstanceRequest.Reset should have comment or be unexported (golint)
    • Line 30: warning: exported method DeleteInstanceRequest.ProtoMessage should have comment or be unexported (golint)
    • Line 32: warning: exported type CreateInstanceRequest should have comment or be unexported (golint)
    • Line 35: warning: don't use underscores in Go names; struct field XXX_NoUnkeyedLiteral should be XXXNoUnkeyedLiteral (golint)
    • Line 36: warning: don't use underscores in Go names; struct field XXX_unrecognized should be XXXUnrecognized (golint)
    • Line 37: warning: don't use underscores in Go names; struct field XXX_sizecache should be XXXSizecache (golint)
    • Line 40: warning: exported method CreateInstanceRequest.Reset should have comment or be unexported (golint)
    • Line 42: warning: exported method CreateInstanceRequest.ProtoMessage should have comment or be unexported (golint)
    • Line 44: warning: exported type UpdateInstanceRequest should have comment or be unexported (golint)
    • Line 48: warning: don't use underscores in Go names; struct field XXX_NoUnkeyedLiteral should be XXXNoUnkeyedLiteral (golint)
    • Line 49: warning: don't use underscores in Go names; struct field XXX_unrecognized should be XXXUnrecognized (golint)
    • Line 50: warning: don't use underscores in Go names; struct field XXX_sizecache should be XXXSizecache (golint)
    • Line 53: warning: exported method UpdateInstanceRequest.Reset should have comment or be unexported (golint)
    • Line 55: warning: exported method UpdateInstanceRequest.ProtoMessage should have comment or be unexported (golint)
    • Line 57: warning: exported type GetDetailRequestWrapper should have comment or be unexported (golint)
    • Line 62: warning: don't use underscores in Go names; struct field XXX_NoUnkeyedLiteral should be XXXNoUnkeyedLiteral (golint)
    • Line 63: warning: don't use underscores in Go names; struct field XXX_unrecognized should be XXXUnrecognized (golint)
    • Line 64: warning: don't use underscores in Go names; struct field XXX_sizecache should be XXXSizecache (golint)
    • Line 67: warning: exported method GetDetailRequestWrapper.Reset should have comment or be unexported (golint)
    • Line 69: warning: exported method GetDetailRequestWrapper.ProtoMessage should have comment or be unexported (golint)
    • Line 71: warning: exported type MultiCreateInstanceRequest should have comment or be unexported (golint)
    • Line 73: warning: don't use underscores in Go names; struct field XXX_NoUnkeyedLiteral should be XXXNoUnkeyedLiteral (golint)
    • Line 74: warning: don't use underscores in Go names; struct field XXX_unrecognized should be XXXUnrecognized (golint)
    • Line 75: warning: don't use underscores in Go names; struct field XXX_sizecache should be XXXSizecache (golint)
    • Line 78: warning: exported method MultiCreateInstanceRequest.Reset should have comment or be unexported (golint)
    • Line 80: warning: exported method MultiCreateInstanceRequest.ProtoMessage should have comment or be unexported (golint)
    • giraffe-micro/pkg/urlpb/marshal_test.go
    • Line 14: warning: don't use underscores in Go names; struct field XXX_NoUnkeyedLiteral should be XXXNoUnkeyedLiteral (golint)
    • Line 15: warning: don't use underscores in Go names; struct field XXX_unrecognized should be XXXUnrecognized (golint)
    • Line 16: warning: don't use underscores in Go names; struct field XXX_sizecache should be XXXSizecache (golint)
    • Line 34: warning: don't use underscores in Go names; struct field XXX_NoUnkeyedLiteral should be XXXNoUnkeyedLiteral (golint)
    • Line 35: warning: don't use underscores in Go names; struct field XXX_unrecognized should be XXXUnrecognized (golint)
    • Line 36: warning: don't use underscores in Go names; struct field XXX_sizecache should be XXXSizecache (golint)
    • Line 45: warning: don't use underscores in Go names; struct field XXX_NoUnkeyedLiteral should be XXXNoUnkeyedLiteral (golint)
    • Line 46: warning: don't use underscores in Go names; struct field XXX_unrecognized should be XXXUnrecognized (golint)
    • Line 47: warning: don't use underscores in Go names; struct field XXX_sizecache should be XXXSizecache (golint)
    • giraffe-micro/plugins/restv2/staticaddr.go
    • Line 9: warning: exported type StaticAddress should have comment or be unexported (golint)
    • Line 11: warning: exported method StaticAddress.GetAddress should have comment or be unexported (golint)
    • Line 15: warning: exported method StaticAddress.GetAllAddresses 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!