Preparing report...

Report for github.com/ProjectAthenaa/encoding

A+    Excellent!    Found 25 issues across 80 files

Tweet

gofmt95%

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!


gocyclo96%

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.


golint80%

Golint is a linter for Go source code.

    • encoding/proto/message.go
    • Line 52: warning: exported method FieldNumber.Bool should have comment or be unexported (golint)
    • Line 60: warning: exported method FieldNumber.Int should have comment or be unexported (golint)
    • Line 64: warning: exported method FieldNumber.Int32 should have comment or be unexported (golint)
    • Line 68: warning: exported method FieldNumber.Int64 should have comment or be unexported (golint)
    • Line 72: warning: exported method FieldNumber.Uint should have comment or be unexported (golint)
    • Line 76: warning: exported method FieldNumber.Uint32 should have comment or be unexported (golint)
    • Line 80: warning: exported method FieldNumber.Uint64 should have comment or be unexported (golint)
    • Line 84: warning: exported method FieldNumber.Fixed32 should have comment or be unexported (golint)
    • Line 88: warning: exported method FieldNumber.Fixed64 should have comment or be unexported (golint)
    • Line 92: warning: exported method FieldNumber.Float32 should have comment or be unexported (golint)
    • Line 96: warning: exported method FieldNumber.Float64 should have comment or be unexported (golint)
    • Line 104: warning: exported method FieldNumber.Bytes should have comment or be unexported (golint)
    • Line 142: warning: exported const Varint should have comment (or a comment on this block) or be unexported (golint)
    • Line 156: warning: exported function Append should have comment or be unexported (golint)
    • Line 168: warning: exported function AppendVarint should have comment or be unexported (golint)
    • Line 174: warning: exported function AppendVarlen should have comment or be unexported (golint)
    • Line 178: warning: exported function AppendFixed32 should have comment or be unexported (golint)
    • Line 184: warning: exported function AppendFixed64 should have comment or be unexported (golint)
    • Line 190: warning: exported function Parse should have comment or be unexported (golint)
    • encoding/json/decode.go
    • Line 629: 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 708: 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 789: 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 870: 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 951: 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 1033: 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 1117: 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 1207: 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)
    • encoding/internal/runtime_reflect/map.go
    • Line 11: warning: don't use an underscore in package name (golint)
    • Line 15: warning: exported function Assign should have comment or be unexported (golint)
    • Line 19: warning: exported function MapAssign should have comment or be unexported (golint)
    • Line 23: warning: exported function MakeMap should have comment or be unexported (golint)
    • Line 27: warning: exported type MapIter should have comment or be unexported (golint)
    • Line 29: warning: exported method MapIter.Init should have comment or be unexported (golint)
    • Line 33: warning: exported method MapIter.Done should have comment or be unexported (golint)
    • Line 40: warning: exported method MapIter.Next should have comment or be unexported (golint)
    • Line 44: warning: exported method MapIter.HasNext should have comment or be unexported (golint)
    • Line 48: warning: exported method MapIter.Key should have comment or be unexported (golint)
    • Line 50: warning: exported method MapIter.Value should have comment or be unexported (golint)
    • encoding/ascii/equal_fold.go
    • Line 1: warning: package comment should be of the form "Package ascii ..." (golint)
    • Line 15: warning: exported function HasPrefixFold should have comment or be unexported (golint)
    • Line 19: warning: exported function HasSuffixFold should have comment or be unexported (golint)
    • Line 100: warning: exported function HasPrefixFoldString should have comment or be unexported (golint)
    • Line 104: warning: exported function HasSuffixFoldString should have comment or be unexported (golint)
    • encoding/proto/error.go
    • Line 9: warning: exported var ErrWireTypeUnknown should have comment or be unexported (golint)
    • Line 12: warning: exported type UnmarshalFieldError should have comment or be unexported (golint)
    • encoding/proto/reflect.go
    • Line 17: warning: exported const Bool should have comment (or a comment on this block) or be unexported (golint)
    • Line 220: warning: exported type Field should have comment or be unexported (golint)
    • Line 605: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • encoding/internal/runtime_reflect/slice.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 5: warning: exported type Slice should have comment or be unexported (golint)
    • Line 11: warning: exported method Slice.Cap should have comment or be unexported (golint)
    • Line 15: warning: exported method Slice.Len should have comment or be unexported (golint)
    • Line 19: warning: exported method Slice.SetLen should have comment or be unexported (golint)
    • Line 23: warning: exported method Slice.Index should have comment or be unexported (golint)
    • Line 27: warning: exported function MakeSlice should have comment or be unexported (golint)
    • Line 35: warning: exported function CopySlice should have comment or be unexported (golint)
    • encoding/ascii/valid_print.go
    • Line 1: warning: package comment should be of the form "Package ascii ..." (golint)
    • Line 6: warning: comment on exported function ValidPrint should be of the form "ValidPrint ..." (golint)
    • Line 11: warning: comment on exported function ValidPrintByte should be of the form "ValidPrintByte ..." (golint)
    • Line 16: warning: comment on exported function ValidPrintRune should be of the form "ValidPrintRune ..." (golint)
    • Line 21: warning: comment on exported function ValidPrintString should be of the form "ValidPrintString ..." (golint)
    • encoding/proto/proto.go
    • Line 10: warning: exported function Size should have comment or be unexported (golint)
    • Line 16: warning: exported function Marshal should have comment or be unexported (golint)
    • Line 27: warning: exported function MarshalTo should have comment or be unexported (golint)
    • Line 37: warning: exported function Unmarshal should have comment or be unexported (golint)
    • Line 85: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 93: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 198: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • encoding/json/json.go
    • Line 83: warning: receiver name f should be consistent with previous receiver name flags for ParseFlags (golint)
    • Line 87: warning: receiver name f should be consistent with previous receiver name flags for ParseFlags (golint)
    • Line 153: warning: exported const Undefined should have comment (or a comment on this block) or be unexported (golint)
    • encoding/ascii/valid.go
    • Line 1: warning: package comment should be of the form "Package ascii ..." (golint)
    • Line 11: warning: comment on exported function ValidByte should be of the form "ValidByte ..." (golint)
    • Line 16: warning: comment on exported function ValidRune should be of the form "ValidRune ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.

    • encoding/ascii/ascii.go
    • Line 17: warning: undeclared name: equalFoldAVX2 (ineffassign)
    • Line 18: warning: undeclared name: validAVX2 (ineffassign)
    • Line 19: warning: undeclared name: validPrintAVX2 (ineffassign)
    • Line 17: warning: undeclared name: equalFoldAVX2 (ineffassign)
    • Line 18: warning: undeclared name: validAVX2 (ineffassign)
    • Line 19: warning: undeclared name: validPrintAVX2 (ineffassign)
    • encoding/proto/fixtures/generate/main.go
    • Line 8: warning: no required module provides package github.com/ProjectAthenaa/encoding/proto/fixtures; to add it: (ineffassign)
    • Line 8: warning: could not import github.com/ProjectAthenaa/encoding/proto/fixtures (invalid package name: "") (ineffassign)

misspell98%

Misspell Finds commonly misspelled English words