Preparing report...

Report for github.com/CosmWasm/tinyjson

A+    Excellent!    Found 51 issues across 73 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!


gocyclo93%

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.

    • tinyjson/benchmark/data_codec.go
    • Line 1771: warning: cyclomatic complexity 94 of function (*User).codecDecodeSelfFromArray() is high (> 15) (gocyclo)
    • Line 2916: warning: cyclomatic complexity 73 of function (*Status).codecDecodeSelfFromArray() is high (> 15) (gocyclo)
    • Line 1632: warning: cyclomatic complexity 57 of function (*User).codecDecodeSelfFromMap() is high (> 15) (gocyclo)
    • Line 2768: warning: cyclomatic complexity 54 of function (*Status).codecDecodeSelfFromMap() is high (> 15) (gocyclo)
    • Line 2430: warning: cyclomatic complexity 35 of function (*Status).CodecEncodeSelf() is high (> 15) (gocyclo)
    • Line 3658: warning: cyclomatic complexity 25 of function (codecSelfer2736).decSlicePtrtostring() is high (> 15) (gocyclo)
    • Line 3560: warning: cyclomatic complexity 23 of function (codecSelfer2736).decSliceHashtag() is high (> 15) (gocyclo)
    • Line 1258: warning: cyclomatic complexity 23 of function (*User).CodecEncodeSelf() is high (> 15) (gocyclo)
    • Line 3947: warning: cyclomatic complexity 23 of function (codecSelfer2736).decSliceLargeStruct() is high (> 15) (gocyclo)
    • Line 3759: warning: cyclomatic complexity 23 of function (codecSelfer2736).decSliceURL() is high (> 15) (gocyclo)
    • Line 3853: warning: cyclomatic complexity 23 of function (codecSelfer2736).decSliceStatus() is high (> 15) (gocyclo)
    • Line 200: warning: cyclomatic complexity 22 of function (*SearchMetadata).codecDecodeSelfFromArray() is high (> 15) (gocyclo)
    • tinyjson/jlexer/lexer.go
    • Line 58: warning: cyclomatic complexity 22 of function (*Lexer).FetchToken() is high (> 15) (gocyclo)
    • Line 526: warning: cyclomatic complexity 16 of function (*Lexer).SkipRecursive() is high (> 15) (gocyclo)
    • tinyjson/gen/decoder.go
    • Line 107: warning: cyclomatic complexity 43 of function (*Generator).genTypeDecoderNoCheck() is high (> 15) (gocyclo)
    • Line 398: warning: cyclomatic complexity 17 of function getStructFields() is high (> 15) (gocyclo)
    • tinyjson/benchmark/data_ffjson.go
    • Line 3931: warning: cyclomatic complexity 299 of function (*User).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 1966: warning: cyclomatic complexity 168 of function (*Status).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 1232: warning: cyclomatic complexity 91 of function (*SearchMetadata).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 124: warning: cyclomatic complexity 73 of function (*Entities).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 3313: warning: cyclomatic complexity 56 of function (*URL).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 592: warning: cyclomatic complexity 49 of function (*Hashtag).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 914: warning: cyclomatic complexity 45 of function (*LargeStruct).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 6071: warning: cyclomatic complexity 43 of function (*UserEntityDescription).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 6605: warning: cyclomatic complexity 40 of function (*XLStruct).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 3049: warning: cyclomatic complexity 40 of function (*StatusMetadata).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 6350: warning: cyclomatic complexity 40 of function (*UserEntityURL).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 5831: warning: cyclomatic complexity 38 of function (*UserEntities).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 1746: warning: cyclomatic complexity 17 of function (*Status).MarshalJSONBuf() is high (> 15) (gocyclo)
    • Line 3618: warning: cyclomatic complexity 17 of function (*User).MarshalJSONBuf() is high (> 15) (gocyclo)

golint53%

Golint is a linter for Go source code.

    • tinyjson/tests/reference_to_pointer.go
    • Line 3: warning: exported type Struct1 should have comment or be unexported (golint)
    • Line 6: warning: comment on exported type Struct2 should be of the form "Struct2 ..." (with optional leading article) (golint)
    • tinyjson/tests/errors.go
    • Line 3: warning: comment on exported type ErrorIntSlice should be of the form "ErrorIntSlice ..." (with optional leading article) (golint)
    • Line 6: warning: comment on exported type ErrorBoolSlice should be of the form "ErrorBoolSlice ..." (with optional leading article) (golint)
    • Line 9: warning: comment on exported type ErrorUintSlice should be of the form "ErrorUintSlice ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported type ErrorStruct should be of the form "ErrorStruct ..." (with optional leading article) (golint)
    • Line 20: warning: exported type ErrorNestedStruct should have comment or be unexported (golint)
    • Line 25: warning: comment on exported type ErrorIntMap should be of the form "ErrorIntMap ..." (with optional leading article) (golint)
    • tinyjson/jwriter/writer.go
    • Line 17: warning: exported const NilMapAsEmpty should have comment (or a comment on this block) or be unexported (golint)
    • Line 65: warning: comment on exported method Writer.RawString should be of the form "RawString ..." (golint)
    • Line 111: warning: exported method Writer.Uint8 should have comment or be unexported (golint)
    • Line 116: warning: exported method Writer.Uint16 should have comment or be unexported (golint)
    • Line 121: warning: exported method Writer.Uint32 should have comment or be unexported (golint)
    • Line 126: warning: exported method Writer.Uint should have comment or be unexported (golint)
    • Line 131: warning: exported method Writer.Uint64 should have comment or be unexported (golint)
    • Line 136: warning: exported method Writer.Int8 should have comment or be unexported (golint)
    • Line 141: warning: exported method Writer.Int16 should have comment or be unexported (golint)
    • Line 146: warning: exported method Writer.Int32 should have comment or be unexported (golint)
    • Line 151: warning: exported method Writer.Int should have comment or be unexported (golint)
    • Line 156: warning: exported method Writer.Int64 should have comment or be unexported (golint)
    • Line 161: warning: exported method Writer.Uint8Str should have comment or be unexported (golint)
    • Line 168: warning: exported method Writer.Uint16Str should have comment or be unexported (golint)
    • Line 175: warning: exported method Writer.Uint32Str should have comment or be unexported (golint)
    • Line 182: warning: exported method Writer.UintStr should have comment or be unexported (golint)
    • Line 189: warning: exported method Writer.Uint64Str should have comment or be unexported (golint)
    • Line 196: warning: exported method Writer.UintptrStr should have comment or be unexported (golint)
    • Line 203: warning: exported method Writer.Int8Str should have comment or be unexported (golint)
    • Line 210: warning: exported method Writer.Int16Str should have comment or be unexported (golint)
    • Line 217: warning: exported method Writer.Int32Str should have comment or be unexported (golint)
    • Line 224: warning: exported method Writer.IntStr should have comment or be unexported (golint)
    • Line 231: warning: exported method Writer.Int64Str should have comment or be unexported (golint)
    • Line 238: warning: exported method Writer.Bool should have comment or be unexported (golint)
    • tinyjson/benchmark/data.go
    • Line 25: warning: exported type SearchMetadata should have comment or be unexported (golint)
    • Line 37: warning: exported type Hashtag should have comment or be unexported (golint)
    • Line 42: warning: comment on exported type Entities should be of the form "Entities ..." (with optional leading article) (golint)
    • Line 49: warning: exported type UserEntityDescription should have comment or be unexported (golint)
    • Line 53: warning: exported type URL should have comment or be unexported (golint)
    • Line 59: warning: exported type UserEntityURL should have comment or be unexported (golint)
    • Line 63: warning: exported type UserEntities should have comment or be unexported (golint)
    • Line 68: warning: exported type User should have comment or be unexported (golint)
    • Line 110: warning: exported type StatusMetadata should have comment or be unexported (golint)
    • Line 115: warning: exported type Status should have comment or be unexported (golint)
    • Line 139: warning: comment on exported type LargeStruct should be of the form "LargeStruct ..." (with optional leading article) (golint)
    • Line 145: warning: comment on exported type XLStruct should be of the form "XLStruct ..." (with optional leading article) (golint)
    • tinyjson/easyjson/main.go
    • Line 52: 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)
    • tinyjson/tests/type_declaration.go
    • Line 3: warning: comment on exported type GenDeclared1 should be of the form "GenDeclared1 ..." (with optional leading article) (golint)
    • Line 9: warning: comment on exported type GenDeclaredWithComment should be of the form "GenDeclaredWithComment ..." (with optional leading article) (golint)
    • Line 16: warning: comment on exported type TypeDeclared should be of the form "TypeDeclared ..." (with optional leading article) (golint)
    • Line 21: warning: exported type TypeNotDeclared should have comment or be unexported (golint)
    • tinyjson/unknown_fields.go
    • Line 14: warning: exported method UnknownFieldsProxy.UnmarshalUnknown should have comment or be unexported (golint)
    • Line 21: warning: exported method UnknownFieldsProxy.MarshalUnknowns should have comment or be unexported (golint)
    • tinyjson/tests/named_type.go
    • Line 3: warning: comment on exported type NamedType should be of the form "NamedType ..." (with optional leading article) (golint)
    • Line 13: warning: exported type MyString should have comment or be unexported (golint)
    • tinyjson/tests/embedded_type.go
    • Line 3: warning: comment on exported type EmbeddedType should be of the form "EmbeddedType ..." (with optional leading article) (golint)
    • Line 13: warning: exported type EmbeddedInnerType should have comment or be unexported (golint)
    • Line 17: warning: exported type EmbeddedInnerType2 should have comment or be unexported (golint)
    • tinyjson/tests/type_declaration_skip.go
    • Line 3: warning: comment on exported type TypeSkipped should be of the form "TypeSkipped ..." (with optional leading article) (golint)
    • Line 8: warning: exported type TypeNotSkipped should have comment or be unexported (golint)
    • tinyjson/jlexer/lexer.go
    • Line 469: warning: exported method Lexer.GetPos should have comment or be unexported (golint)
    • Line 756: warning: exported method Lexer.Uint8 should have comment or be unexported (golint)
    • Line 773: warning: exported method Lexer.Uint16 should have comment or be unexported (golint)
    • Line 790: warning: exported method Lexer.Uint32 should have comment or be unexported (golint)
    • Line 807: warning: exported method Lexer.Uint64 should have comment or be unexported (golint)
    • Line 824: warning: exported method Lexer.Uint should have comment or be unexported (golint)
    • Line 828: warning: exported method Lexer.Int8 should have comment or be unexported (golint)
    • Line 845: warning: exported method Lexer.Int16 should have comment or be unexported (golint)
    • Line 862: warning: exported method Lexer.Int32 should have comment or be unexported (golint)
    • Line 879: warning: exported method Lexer.Int64 should have comment or be unexported (golint)
    • Line 896: warning: exported method Lexer.Int should have comment or be unexported (golint)
    • Line 900: warning: exported method Lexer.Uint8Str should have comment or be unexported (golint)
    • Line 917: warning: exported method Lexer.Uint16Str should have comment or be unexported (golint)
    • Line 934: warning: exported method Lexer.Uint32Str should have comment or be unexported (golint)
    • Line 951: warning: exported method Lexer.Uint64Str should have comment or be unexported (golint)
    • Line 968: warning: exported method Lexer.UintStr should have comment or be unexported (golint)
    • Line 972: warning: exported method Lexer.UintptrStr should have comment or be unexported (golint)
    • Line 976: warning: exported method Lexer.Int8Str should have comment or be unexported (golint)
    • Line 993: warning: exported method Lexer.Int16Str should have comment or be unexported (golint)
    • Line 1010: warning: exported method Lexer.Int32Str should have comment or be unexported (golint)
    • Line 1027: warning: exported method Lexer.Int64Str should have comment or be unexported (golint)
    • Line 1044: warning: exported method Lexer.IntStr should have comment or be unexported (golint)
    • Line 1052: warning: exported method Lexer.AddError should have comment or be unexported (golint)
    • Line 1058: warning: exported method Lexer.AddNonFatalError should have comment or be unexported (golint)
    • Line 1078: warning: exported method Lexer.GetNonFatalErrors should have comment or be unexported (golint)
    • Line 1117: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1132: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • tinyjson/tests/nested_easy.go
    • Line 8: warning: comment on exported type NestedInterfaces should be of the form "NestedInterfaces ..." (with optional leading article) (golint)
    • Line 15: warning: exported type NestedEasyMarshaler should have comment or be unexported (golint)
    • Line 21: warning: exported method NestedEasyMarshaler.MarshalEasyJSON should have comment or be unexported (golint)
    • tinyjson/helpers.go
    • Line 18: warning: comment on exported type Unmarshaler should be of the form "Unmarshaler ..." (with optional leading article) (golint)
    • tinyjson/tests/key_marshaler_map.go
    • Line 3: warning: exported type KeyWithEncodingMarshaler should have comment or be unexported (golint)
    • Line 5: warning: exported method KeyWithEncodingMarshaler.MarshalText should have comment or be unexported (golint)
    • Line 9: warning: exported method KeyWithEncodingMarshaler.UnmarshalText should have comment or be unexported (golint)
    • Line 16: warning: comment on exported type KeyWithEncodingMarshalers should be of the form "KeyWithEncodingMarshalers ..." (with optional leading article) (golint)
    • tinyjson/tiny-tests/cosmwasm.go
    • Line 5: warning: comment on exported type Env should be of the form "Env ..." (with optional leading article) (golint)
    • Line 11: warning: exported type BlockInfo should have comment or be unexported (golint)
    • Line 16: warning: exported type ContractInfo should have comment or be unexported (golint)
    • Line 20: warning: comment on exported type MessageInfo should be of the form "MessageInfo ..." (with optional leading article) (golint)
    • Line 27: warning: exported type Coin should have comment or be unexported (golint)
    • Line 32: warning: comment on exported type ExecuteMsg should be of the form "ExecuteMsg ..." (with optional leading article) (golint)
    • Line 37: warning: exported type DepositMsg should have comment or be unexported (golint)
    • Line 42: warning: comment on exported type WithdrawMsg should be of the form "WithdrawMsg ..." (with optional leading article) (golint)
    • Line 50: warning: comment on exported method MessageInfo.Equals should be of the form "Equals ..." (golint)
    • Line 67: warning: comment on exported method ExecuteMsg.Equals should be of the form "Equals ..." (golint)
    • tinyjson/tests/data.go
    • Line 12: warning: exported type PrimitiveTypes should have comment or be unexported (golint)
    • Line 109: warning: exported type NamedString should have comment or be unexported (golint)
    • Line 110: warning: exported type NamedBool should have comment or be unexported (golint)
    • Line 112: warning: exported type NamedInt should have comment or be unexported (golint)
    • Line 113: warning: exported type NamedInt8 should have comment or be unexported (golint)
    • Line 114: warning: exported type NamedInt16 should have comment or be unexported (golint)
    • Line 115: warning: exported type NamedInt32 should have comment or be unexported (golint)
    • Line 116: warning: exported type NamedInt64 should have comment or be unexported (golint)
    • Line 118: warning: exported type NamedUint should have comment or be unexported (golint)
    • Line 119: warning: exported type NamedUint8 should have comment or be unexported (golint)
    • Line 120: warning: exported type NamedUint16 should have comment or be unexported (golint)
    • Line 121: warning: exported type NamedUint32 should have comment or be unexported (golint)
    • Line 122: warning: exported type NamedUint64 should have comment or be unexported (golint)
    • Line 124: warning: exported type NamedStrPtr should have comment or be unexported (golint)
    • Line 127: warning: exported type NamedPrimitiveTypes should have comment or be unexported (golint)
    • Line 186: warning: exported type SubStruct should have comment or be unexported (golint)
    • Line 192: warning: exported type SubP should have comment or be unexported (golint)
    • Line 196: warning: exported type SubStructAlias should have comment or be unexported (golint)
    • Line 198: warning: exported type Structs should have comment or be unexported (golint)
    • Line 299: warning: exported type OmitEmpty should have comment or be unexported (golint)
    • Line 330: warning: exported type Opts should have comment or be unexported (golint)
    • Line 358: warning: exported type Raw should have comment or be unexported (golint)
    • Line 373: warning: exported type StdMarshaler should have comment or be unexported (golint)
    • Line 391: warning: exported type ExcludedField should have comment or be unexported (golint)
    • Line 404: warning: exported type Slices should have comment or be unexported (golint)
    • Line 431: warning: exported type Arrays should have comment or be unexported (golint)
    • Line 471: warning: exported type Str should have comment or be unexported (golint)
    • Line 473: warning: exported type Maps should have comment or be unexported (golint)
    • Line 495: warning: exported type NamedSlice should have comment or be unexported (golint)
    • Line 496: warning: exported type NamedMap should have comment or be unexported (golint)
    • Line 498: warning: exported type DeepNest should have comment or be unexported (golint)
    • Line 592: warning: exported type DeepNestOptional should have comment or be unexported (golint)
    • Line 606: warning: comment on exported type Ints should be of the form "Ints ..." (with optional leading article) (golint)
    • Line 609: warning: exported var IntsValue should have comment or be unexported (golint)
    • Line 611: warning: exported var IntsString should have comment or be unexported (golint)
    • Line 613: warning: comment on exported type MapStringString should be of the form "MapStringString ..." (with optional leading article) (golint)
    • Line 620: warning: exported type RequiredOptionalStruct should have comment or be unexported (golint)
    • Line 625: warning: exported type RequiredOptionalMap should have comment or be unexported (golint)
    • Line 631: warning: comment on exported type EncodingFlagsTestMap should be of the form "EncodingFlagsTestMap ..." (with optional leading article) (golint)
    • Line 636: warning: comment on exported type EncodingFlagsTestSlice should be of the form "EncodingFlagsTestSlice ..." (with optional leading article) (golint)
    • Line 641: warning: exported type StructWithInterface should have comment or be unexported (golint)
    • Line 647: warning: exported type EmbeddedStruct should have comment or be unexported (golint)
    • Line 655: warning: comment on exported type MapIntString should be of the form "MapIntString ..." (with optional leading article) (golint)
    • Line 661: warning: comment on exported type MapInt32String should be of the form "MapInt32String ..." (with optional leading article) (golint)
    • Line 667: warning: comment on exported type MapInt64String should be of the form "MapInt64String ..." (with optional leading article) (golint)
    • Line 673: warning: comment on exported type MapUintString should be of the form "MapUintString ..." (with optional leading article) (golint)
    • Line 679: warning: comment on exported type MapUint32String should be of the form "MapUint32String ..." (with optional leading article) (golint)
    • Line 685: warning: comment on exported type MapUint64String should be of the form "MapUint64String ..." (with optional leading article) (golint)
    • Line 691: warning: comment on exported type MapUintptrString should be of the form "MapUintptrString ..." (with optional leading article) (golint)
    • Line 697: warning: exported type MyInt should have comment or be unexported (golint)
    • Line 699: warning: comment on exported type MapMyIntString should be of the form "MapMyIntString ..." (with optional leading article) (golint)
    • Line 705: warning: comment on exported type IntKeyedMapStruct should be of the form "IntKeyedMapStruct ..." (with optional leading article) (golint)
    • Line 720: warning: exported type IntArray should have comment or be unexported (golint)
    • Line 722: warning: comment on exported type IntArrayStruct should be of the form "IntArrayStruct ..." (with optional leading article) (golint)
    • Line 738: warning: exported type MyUInt8 should have comment or be unexported (golint)
    • Line 740: warning: comment on exported type MyUInt8Slice should be of the form "MyUInt8Slice ..." (with optional leading article) (golint)
    • Line 747: warning: comment on exported type MyUInt8Array should be of the form "MyUInt8Array ..." (with optional leading article) (golint)
    • tinyjson/tests/nested_marshaler.go
    • Line 9: warning: comment on exported type NestedMarshaler should be of the form "NestedMarshaler ..." (with optional leading article) (golint)
    • Line 15: warning: exported type StructWithMarshaler should have comment or be unexported (golint)
    • Line 19: warning: exported method StructWithMarshaler.UnmarshalEasyJSON should have comment or be unexported (golint)
    • Line 23: warning: exported method StructWithMarshaler.MarshalEasyJSON should have comment or be unexported (golint)
    • tinyjson/tests/omitempty.go
    • Line 3: warning: comment on exported type OmitEmptyDefault should be of the form "OmitEmptyDefault ..." (with optional leading article) (golint)
    • tinyjson/tests/snake.go
    • Line 3: warning: comment on exported type SnakeStruct should be of the form "SnakeStruct ..." (with optional leading article) (golint)
    • tinyjson/tests/unknown_fields.go
    • Line 5: warning: comment on exported type StructWithUnknownsProxy should be of the form "StructWithUnknownsProxy ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported type StructWithUnknownsProxyWithOmitempty should be of the form "StructWithUnknownsProxyWithOmitempty ..." (with optional leading article) (golint)
    • tinyjson/parser/parser.go
    • Line 16: warning: exported type Parser should have comment or be unexported (golint)
    • Line 109: warning: exported method Parser.Parse should have comment or be unexported (golint)
    • tinyjson/tests/escaping.go
    • Line 3: warning: comment on exported type EscStringStruct should be of the form "EscStringStruct ..." (with optional leading article) (golint)
    • Line 8: warning: comment on exported type EscIntStruct should be of the form "EscIntStruct ..." (with optional leading article) (golint)
    • tinyjson/gen/generator.go
    • Line 395: warning: comment on exported type DefaultFieldNamer should be of the form "DefaultFieldNamer ..." (with optional leading article) (golint)
    • Line 398: warning: exported method DefaultFieldNamer.GetJSONFieldName should have comment or be unexported (golint)
    • Line 407: warning: comment on exported type LowerCamelCaseFieldNamer should be of the form "LowerCamelCaseFieldNamer ..." (with optional leading article) (golint)
    • Line 464: warning: exported method LowerCamelCaseFieldNamer.GetJSONFieldName should have comment or be unexported (golint)
    • Line 521: warning: exported method SnakeCaseFieldNamer.GetJSONFieldName should have comment or be unexported (golint)
    • tinyjson/tests/intern.go
    • Line 3: warning: comment on exported type NoIntern should be of the form "NoIntern ..." (with optional leading article) (golint)
    • Line 8: warning: comment on exported type Intern should be of the form "Intern ..." (with optional leading article) (golint)
    • tinyjson/tests/nocopy.go
    • Line 3: warning: comment on exported type NocopyStruct should be of the form "NocopyStruct ..." (with optional leading article) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign80%

IneffAssign detects ineffectual assignments in Go code.

    • tinyjson/tests/data.go
    • Line 331: warning: String not declared by package opt (ineffassign)
    • Line 332: warning: String not declared by package opt (ineffassign)
    • Line 333: warning: String not declared by package opt (ineffassign)
    • Line 334: warning: String not declared by package opt (ineffassign)
    • Line 336: warning: Int not declared by package opt (ineffassign)
    • Line 337: warning: Int not declared by package opt (ineffassign)
    • Line 338: warning: Int not declared by package opt (ineffassign)
    • Line 342: warning: OString not declared by package opt (ineffassign)
    • Line 343: warning: OString not declared by package opt (ineffassign)
    • Line 345: warning: OInt not declared by package opt (ineffassign)
    • Line 346: warning: OInt not declared by package opt (ineffassign)
    • Line 331: warning: String not declared by package opt (ineffassign)
    • Line 332: warning: String not declared by package opt (ineffassign)
    • Line 333: warning: String not declared by package opt (ineffassign)
    • Line 334: warning: String not declared by package opt (ineffassign)
    • Line 336: warning: Int not declared by package opt (ineffassign)
    • Line 337: warning: Int not declared by package opt (ineffassign)
    • Line 338: warning: Int not declared by package opt (ineffassign)
    • Line 342: warning: OString not declared by package opt (ineffassign)
    • Line 343: warning: OString not declared by package opt (ineffassign)
    • Line 345: warning: OInt not declared by package opt (ineffassign)
    • Line 346: warning: OInt not declared by package opt (ineffassign)
    • tinyjson/tests/errors_test.go
    • Line 42: warning: v.UnmarshalEasyJSON undefined (type ErrorIntSlice has no field or method UnmarshalEasyJSON) (ineffassign)
    • Line 82: warning: v.UnmarshalEasyJSON undefined (type ErrorBoolSlice has no field or method UnmarshalEasyJSON) (ineffassign)
    • Line 125: warning: v.UnmarshalEasyJSON undefined (type ErrorUintSlice has no field or method UnmarshalEasyJSON) (ineffassign)
    • Line 179: warning: v.UnmarshalEasyJSON undefined (type ErrorStruct has no field or method UnmarshalEasyJSON) (ineffassign)
    • Line 229: warning: v.UnmarshalEasyJSON undefined (type ErrorNestedStruct has no field or method UnmarshalEasyJSON) (ineffassign)
    • Line 270: warning: v.UnmarshalEasyJSON undefined (type ErrorIntMap has no field or method UnmarshalEasyJSON) (ineffassign)
    • tinyjson/tests/unknown_fields_test.go
    • Line 13: warning: s.UnmarshalJSON undefined (type StructWithUnknownsProxy has no field or method UnmarshalJSON) (ineffassign)
    • Line 22: warning: s.MarshalJSON undefined (type StructWithUnknownsProxy has no field or method MarshalJSON) (ineffassign)
    • Line 37: warning: s.UnmarshalJSON undefined (type StructWithUnknownsProxyWithOmitempty has no field or method UnmarshalJSON) (ineffassign)
    • Line 46: warning: s.MarshalJSON undefined (type StructWithUnknownsProxyWithOmitempty has no field or method MarshalJSON) (ineffassign)
    • tinyjson/tiny-tests/benchmark_test.go
    • Line 10: warning: s.UnmarshalJSON undefined (type Env has no field or method UnmarshalJSON) (ineffassign)
    • Line 20: warning: s.UnmarshalJSON undefined (type MessageInfo has no field or method UnmarshalJSON) (ineffassign)
    • tinyjson/tiny-tests/cosmwasm_test.go
    • Line 33: warning: loaded.UnmarshalJSON undefined (type Env has no field or method UnmarshalJSON) (ineffassign)
    • Line 42: warning: loaded.MarshalJSON undefined (type Env has no field or method MarshalJSON) (ineffassign)
    • Line 92: warning: loaded.UnmarshalJSON undefined (type MessageInfo has no field or method UnmarshalJSON) (ineffassign)
    • Line 101: warning: loaded.MarshalJSON undefined (type MessageInfo has no field or method MarshalJSON) (ineffassign)
    • Line 134: warning: loaded.UnmarshalJSON undefined (type ExecuteMsg has no field or method UnmarshalJSON) (ineffassign)
    • Line 143: warning: loaded.MarshalJSON undefined (type ExecuteMsg has no field or method MarshalJSON) (ineffassign)
    • tinyjson/tests/escaping_test.go
    • Line 51: warning: cannot use &val (value of type *EscStringStruct) as easyjson.Unmarshaler value in argument to easyjson.Unmarshal: missing method UnmarshalEasyJSON (ineffassign)
    • Line 82: warning: cannot use &val (value of type *EscIntStruct) as easyjson.Unmarshaler value in argument to easyjson.Unmarshal: missing method UnmarshalEasyJSON (ineffassign)
    • tinyjson/tests/members_escaping_test.go
    • Line 40: warning: cannot use &esc (value of type *MembersEscaped) as easyjson.Unmarshaler value in argument to easyjson.Unmarshal: missing method UnmarshalEasyJSON (ineffassign)
    • Line 49: warning: cannot use &unesc (value of type *MembersUnescaped) as easyjson.Unmarshaler value in argument to easyjson.Unmarshal: missing method UnmarshalEasyJSON (ineffassign)
    • tinyjson/tiny-tests/generate_test.go
    • Line 24: warning: sampleEnv.MarshalJSON undefined (type Env has no field or method MarshalJSON) (ineffassign)
    • Line 29: warning: sampleMsgInfo.MarshalJSON undefined (type MessageInfo has no field or method MarshalJSON) (ineffassign)
    • tinyjson/tests/intern_test.go
    • Line 15: warning: cannot use &i (value of type *Intern) as easyjson.Unmarshaler value in argument to easyjson.Unmarshal: missing method UnmarshalEasyJSON (ineffassign)
    • Line 30: warning: cannot use &n (value of type *NoIntern) as easyjson.Unmarshaler value in argument to easyjson.Unmarshal: missing method UnmarshalEasyJSON (ineffassign)
    • tinyjson/tests/nocopy_test.go
    • Line 30: warning: cannot use &res (value of type *NocopyStruct) as easyjson.Unmarshaler value in argument to easyjson.Unmarshal: missing method UnmarshalEasyJSON (ineffassign)
    • Line 48: warning: cannot use &res (value of type *NocopyStruct) as easyjson.Unmarshaler value in argument to easyjson.Unmarshal: missing method UnmarshalEasyJSON (ineffassign)
    • Line 62: warning: cannot use &res (value of type *NocopyStruct) as easyjson.Unmarshaler value in argument to easyjson.Unmarshal: missing method UnmarshalEasyJSON (ineffassign)
    • tinyjson/tests/required_test.go
    • Line 18: warning: v.UnmarshalJSON undefined (type RequiredOptionalStruct has no field or method UnmarshalJSON) (ineffassign)
    • Line 36: warning: v.UnmarshalJSON undefined (type RequiredOptionalMap has no field or method UnmarshalJSON) (ineffassign)
    • Line 45: warning: baseStruct.MarshalJSON undefined (type RequiredOptionalMap has no field or method MarshalJSON) (ineffassign)
    • tinyjson/tests/basic_test.go
    • Line 22: warning: cannot use &primitiveTypesValue (value of type *PrimitiveTypes) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 23: warning: cannot use &namedPrimitiveTypesValue (value of type *NamedPrimitiveTypes) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 24: warning: cannot use &structsValue (value of type *Structs) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 25: warning: cannot use &omitEmptyValue (value of type *OmitEmpty) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 26: warning: cannot use &snakeStructValue (value of type *SnakeStruct) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 27: warning: cannot use &omitEmptyDefaultValue (value of type *OmitEmptyDefault) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 28: warning: cannot use &optsValue (value of type *Opts) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 29: warning: cannot use &rawValue (value of type *Raw) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 30: warning: cannot use &stdMarshalerValue (value of type *StdMarshaler) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 31: warning: cannot use &unexportedStructValue (value of type *unexportedStruct) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 32: warning: cannot use &excludedFieldValue (value of type *ExcludedField) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 33: warning: cannot use &sliceValue (value of type *Slices) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 34: warning: cannot use &arrayValue (value of type *Arrays) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 35: warning: cannot use &mapsValue (value of type *Maps) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 36: warning: cannot use &deepNestValue (value of type *DeepNest) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 37: warning: cannot use &IntsValue (value of type *Ints) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 38: warning: cannot use &mapStringStringValue (value of type *MapStringString) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 39: warning: cannot use &namedTypeValue (value of type *NamedType) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 40: warning: cannot use &customMapKeyTypeValue (value of type *CustomMapKeyType) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 41: warning: cannot use &embeddedTypeValue (value of type *EmbeddedType) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 42: warning: cannot use &mapMyIntStringValue (value of type *MapMyIntString) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 43: warning: cannot use &mapIntStringValue (value of type *MapIntString) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 44: warning: cannot use &mapInt32StringValue (value of type *MapInt32String) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 45: warning: cannot use &mapInt64StringValue (value of type *MapInt64String) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 46: warning: cannot use &mapUintStringValue (value of type *MapUintString) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 47: warning: cannot use &mapUint32StringValue (value of type *MapUint32String) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 48: warning: cannot use &mapUint64StringValue (value of type *MapUint64String) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 49: warning: cannot use &mapUintptrStringValue (value of type *MapUintptrString) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 50: warning: cannot use &intKeyedMapStructValue (value of type *IntKeyedMapStruct) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 51: warning: cannot use &intArrayStructValue (value of type *IntArrayStruct) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 52: warning: cannot use &myUInt8SliceValue (value of type *MyUInt8Slice) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 53: warning: cannot use &myUInt8ArrayValue (value of type *MyUInt8Array) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 54: warning: cannot use &mapWithEncodingMarshaler (value of type *KeyWithEncodingMarshalers) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 55: warning: cannot use &myGenDeclaredValue (value of type *TypeDeclared) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 56: warning: cannot use &myGenDeclaredWithCommentValue (value of type *TypeDeclared) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 57: warning: cannot use &myTypeDeclaredValue (value of type *TypeDeclared) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 58: warning: cannot use &myTypeNotSkippedValue (value of type *TypeDeclared) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 59: warning: cannot use &intern (value of type *Intern) as testType value in struct literal: missing method MarshalJSON (ineffassign)
    • Line 124: warning: cannot use &got (value of type *SubStruct) as easyjson.Unmarshaler value in argument to easyjson.Unmarshal: missing method UnmarshalEasyJSON (ineffassign)
    • Line 162: warning: cannot use &a (value of type *Arrays) as easyjson.Unmarshaler value in argument to easyjson.Unmarshal: missing method UnmarshalEasyJSON (ineffassign)
    • Line 173: warning: cannot use &a (value of type *Arrays) as easyjson.Unmarshaler value in argument to easyjson.Unmarshal: missing method UnmarshalEasyJSON (ineffassign)
    • Line 188: warning: cannot use (EncodingFlagsTestMap literal) (value of type EncodingFlagsTestMap) as easyjson.Marshaler value in struct literal: missing method MarshalEasyJSON (ineffassign)
    • Line 189: warning: cannot use (EncodingFlagsTestSlice literal) (value of type EncodingFlagsTestSlice) as easyjson.Marshaler value in struct literal: missing method MarshalEasyJSON (ineffassign)
    • Line 190: warning: cannot use (EncodingFlagsTestMap literal) (value of type EncodingFlagsTestMap) as easyjson.Marshaler value in struct literal: missing method MarshalEasyJSON (ineffassign)
    • Line 191: warning: cannot use (EncodingFlagsTestSlice literal) (value of type EncodingFlagsTestSlice) as easyjson.Marshaler value in struct literal: missing method MarshalEasyJSON (ineffassign)
    • Line 223: warning: cannot use ni (variable of type NestedInterfaces) as easyjson.Marshaler value in argument to easyjson.Marshal: missing method MarshalEasyJSON (ineffassign)
    • Line 240: warning: s.MarshalJSON undefined (type NestedMarshaler has no field or method MarshalJSON) (ineffassign)
    • Line 249: warning: s2.UnmarshalJSON undefined (type NestedMarshaler has no field or method UnmarshalJSON) (ineffassign)
    • Line 262: warning: cannot use &s (value of type *StructWithInterface) as easyjson.Unmarshaler value in argument to easyjson.Unmarshal: missing method UnmarshalEasyJSON (ineffassign)
    • Line 273: warning: cannot use &d (value of type *DisallowUnknown) as easyjson.Unmarshaler value in argument to easyjson.Unmarshal: missing method UnmarshalEasyJSON (ineffassign)
    • Line 302: warning: cannot use p (variable of type *PrimitiveTypes) as easyjson.Marshaler value in argument to easyjson.Marshal: missing method MarshalEasyJSON (ineffassign)
    • Line 311: warning: cannot use p (variable of type *PrimitiveTypes) as easyjson.Marshaler value in argument to easyjson.MarshalToWriter: missing method MarshalEasyJSON (ineffassign)
    • tinyjson/tests/opt_test.go
    • Line 15: warning: Int not declared by package opt (ineffassign)
    • Line 16: warning: Uint not declared by package opt (ineffassign)
    • Line 18: warning: Int8 not declared by package opt (ineffassign)
    • Line 19: warning: Int16 not declared by package opt (ineffassign)
    • Line 20: warning: Int32 not declared by package opt (ineffassign)
    • Line 21: warning: Int64 not declared by package opt (ineffassign)
    • Line 23: warning: Uint8 not declared by package opt (ineffassign)
    • Line 24: warning: Uint16 not declared by package opt (ineffassign)
    • Line 25: warning: Uint32 not declared by package opt (ineffassign)
    • Line 26: warning: Uint64 not declared by package opt (ineffassign)
    • Line 28: warning: Bool not declared by package opt (ineffassign)
    • Line 29: warning: String not declared by package opt (ineffassign)
    • Line 33: warning: OInt not declared by package opt (ineffassign)
    • Line 34: warning: OUint not declared by package opt (ineffassign)
    • Line 36: warning: OInt8 not declared by package opt (ineffassign)
    • Line 37: warning: OInt16 not declared by package opt (ineffassign)
    • Line 38: warning: OInt32 not declared by package opt (ineffassign)
    • Line 39: warning: OInt64 not declared by package opt (ineffassign)
    • Line 41: warning: OUint8 not declared by package opt (ineffassign)
    • Line 42: warning: OUint16 not declared by package opt (ineffassign)
    • Line 43: warning: OUint32 not declared by package opt (ineffassign)
    • Line 44: warning: OUint64 not declared by package opt (ineffassign)
    • Line 46: warning: OBool not declared by package opt (ineffassign)
    • Line 47: warning: OString not declared by package opt (ineffassign)
    • tinyjson/tests/html_test.go
    • Line 17: warning: s.MarshalEasyJSON undefined (type Struct has no field or method MarshalEasyJSON) (ineffassign)
    • Line 26: warning: s.MarshalEasyJSON undefined (type Struct has no field or method MarshalEasyJSON) (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!