Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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.
Golint is a linter for Go source code.
-
molecule/src/codec/constants.go
- Line 24: warning: don't use underscores in Go names; const FieldType_DOUBLE should be FieldTypeDOUBLE (golint)
- Line 24: warning: exported const FieldType_DOUBLE should have comment (or a comment on this block) or be unexported (golint)
- Line 25: warning: don't use underscores in Go names; const FieldType_FLOAT should be FieldTypeFLOAT (golint)
- Line 26: warning: don't use underscores in Go names; const FieldType_INT64 should be FieldTypeINT64 (golint)
- Line 27: warning: don't use underscores in Go names; const FieldType_UINT64 should be FieldTypeUINT64 (golint)
- Line 28: warning: don't use underscores in Go names; const FieldType_INT32 should be FieldTypeINT32 (golint)
- Line 29: warning: don't use underscores in Go names; const FieldType_FIXED64 should be FieldTypeFIXED64 (golint)
- Line 30: warning: don't use underscores in Go names; const FieldType_FIXED32 should be FieldTypeFIXED32 (golint)
- Line 31: warning: don't use underscores in Go names; const FieldType_BOOL should be FieldTypeBOOL (golint)
- Line 32: warning: don't use underscores in Go names; const FieldType_STRING should be FieldTypeSTRING (golint)
- Line 33: warning: don't use underscores in Go names; const FieldType_GROUP should be FieldTypeGROUP (golint)
- Line 34: warning: don't use underscores in Go names; const FieldType_MESSAGE should be FieldTypeMESSAGE (golint)
- Line 35: warning: don't use underscores in Go names; const FieldType_BYTES should be FieldTypeBYTES (golint)
- Line 36: warning: don't use underscores in Go names; const FieldType_UINT32 should be FieldTypeUINT32 (golint)
- Line 37: warning: don't use underscores in Go names; const FieldType_ENUM should be FieldTypeENUM (golint)
- Line 38: warning: don't use underscores in Go names; const FieldType_SFIXED32 should be FieldTypeSFIXED32 (golint)
- Line 39: warning: don't use underscores in Go names; const FieldType_SFIXED64 should be FieldTypeSFIXED64 (golint)
- Line 40: warning: don't use underscores in Go names; const FieldType_SINT32 should be FieldTypeSINT32 (golint)
- Line 41: warning: don't use underscores in Go names; const FieldType_SINT64 should be FieldTypeSINT64 (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!