Preparing report...

Report for github.com/tigrannajaryan/govariant

A+    Excellent!    Found 8 issues across 21 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!


golint71%

Golint is a linter for Go source code.

    • govariant/internal/testutil/testutil.go
    • Line 4: warning: exported const VariantListSize should have comment or be unexported (golint)
    • Line 5: warning: exported const IntMagicVal should have comment or be unexported (golint)
    • Line 6: warning: exported const Float64MagicVal should have comment or be unexported (golint)
    • Line 7: warning: exported const StrMagicVal should have comment or be unexported (golint)
    • Line 9: warning: exported var BytesMagicVal should have comment or be unexported (golint)
    • govariant/internal/interfacev/interfacev.go
    • Line 4: warning: exported type IVariant should have comment or be unexported (golint)
    • Line 11: warning: exported type IVariantInt should have comment or be unexported (golint)
    • Line 13: warning: exported method IVariantInt.Int should have comment or be unexported (golint)
    • Line 17: warning: exported method IVariantInt.Float64 should have comment or be unexported (golint)
    • Line 25: warning: exported method IVariantInt.Bytes should have comment or be unexported (golint)
    • Line 29: warning: exported type IVariantFloat64 should have comment or be unexported (golint)
    • Line 31: warning: exported method IVariantFloat64.Float64 should have comment or be unexported (golint)
    • Line 35: warning: exported method IVariantFloat64.Int should have comment or be unexported (golint)
    • Line 43: warning: exported method IVariantFloat64.Bytes should have comment or be unexported (golint)
    • Line 47: warning: exported type IVariantString should have comment or be unexported (golint)
    • Line 49: warning: exported method IVariantString.Int should have comment or be unexported (golint)
    • Line 53: warning: exported method IVariantString.Float64 should have comment or be unexported (golint)
    • Line 61: warning: exported method IVariantString.Bytes should have comment or be unexported (golint)
    • Line 65: warning: exported type IVariantBytes should have comment or be unexported (golint)
    • Line 67: warning: exported method IVariantBytes.Int should have comment or be unexported (golint)
    • Line 71: warning: exported method IVariantBytes.Float64 should have comment or be unexported (golint)
    • Line 75: warning: exported method IVariantBytes.Bytes should have comment or be unexported (golint)
    • govariant/internal/plainstruct/plainstruct.go
    • Line 6: warning: exported type Variant should have comment or be unexported (golint)
    • Line 14: warning: exported method Variant.Type should have comment or be unexported (golint)
    • Line 18: warning: exported function IntVariant should have comment or be unexported (golint)
    • Line 22: warning: exported function StringVariant should have comment or be unexported (golint)
    • Line 26: warning: exported function BytesVariant should have comment or be unexported (golint)
    • Line 30: warning: exported function Float64Variant should have comment or be unexported (golint)
    • Line 34: warning: exported method Variant.Int should have comment or be unexported (golint)
    • Line 38: warning: exported method Variant.Float64 should have comment or be unexported (golint)
    • Line 46: warning: exported method Variant.Bytes should have comment or be unexported (golint)
    • govariant/internal/ptrstruct/ptrstruct.go
    • Line 6: warning: exported type Variant should have comment or be unexported (golint)
    • Line 14: warning: exported method Variant.Type should have comment or be unexported (golint)
    • Line 18: warning: exported function IntVariant should have comment or be unexported (golint)
    • Line 22: warning: exported function StringVariant should have comment or be unexported (golint)
    • Line 26: warning: exported function BytesVariant should have comment or be unexported (golint)
    • Line 30: warning: exported function Float64Variant should have comment or be unexported (golint)
    • Line 34: warning: exported method Variant.Int should have comment or be unexported (golint)
    • Line 38: warning: exported method Variant.Float64 should have comment or be unexported (golint)
    • Line 46: warning: exported method Variant.Bytes should have comment or be unexported (golint)
    • govariant/internal/cvariant/variant.go
    • Line 40: warning: comment on exported const TypeFieldBitCount should be of the form "TypeFieldBitCount ..." (golint)
    • Line 59: warning: comment on exported const MaxSliceLen should be of the form "MaxSliceLen ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!