Preparing report...

Report for github.com/thepudds/fzgo

A+    Excellent!    Found 9 issues across 26 files

Tweet

gofmt96%

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!


gocyclo84%

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.

    • fzgo/main.go
    • Line 68: warning: cyclomatic complexity 33 of function fzgoMain() is high (> 15) (gocyclo)

golint84%

Golint is a linter for Go source code.

    • fzgo/genfuzzfuncs/examples/test-constructor-injection/examples.go
    • Line 18: warning: exported type A should have comment or be unexported (golint)
    • Line 20: warning: exported function NewAPtr should have comment or be unexported (golint)
    • Line 21: warning: exported method A.PtrMethodWithArg should have comment or be unexported (golint)
    • Line 22: warning: exported method A.PtrMethodNoArg should have comment or be unexported (golint)
    • Line 23: warning: exported method A.ValMethodWithArg should have comment or be unexported (golint)
    • Line 24: warning: exported method A.ValMethodNoArg should have comment or be unexported (golint)
    • Line 26: warning: exported type B should have comment or be unexported (golint)
    • Line 28: warning: exported function NewBVal should have comment or be unexported (golint)
    • Line 29: warning: exported method B.PtrMethodWithArg should have comment or be unexported (golint)
    • Line 30: warning: exported method B.PtrMethodNoArg should have comment or be unexported (golint)
    • Line 31: warning: exported method B.ValMethodWithArg should have comment or be unexported (golint)
    • Line 32: warning: exported method B.ValMethodNoArg should have comment or be unexported (golint)
    • fzgo/genfuzzfuncs/examples/x-mod-modules/modules_fuzz.go
    • Line 11: warning: exported function Fuzz_Sort should have comment or be unexported (golint)
    • Line 11: warning: don't use underscores in Go names; func Fuzz_Sort should be FuzzSort (golint)
    • Line 15: warning: exported function Fuzz_Version_String should have comment or be unexported (golint)
    • Line 15: warning: don't use underscores in Go names; func Fuzz_Version_String should be FuzzVersionString (golint)
    • Line 19: warning: exported function Fuzz_Check should have comment or be unexported (golint)
    • Line 19: warning: don't use underscores in Go names; func Fuzz_Check should be FuzzCheck (golint)
    • Line 23: warning: exported function Fuzz_CanonicalVersion should have comment or be unexported (golint)
    • Line 23: warning: don't use underscores in Go names; func Fuzz_CanonicalVersion should be FuzzCanonicalVersion (golint)
    • Line 27: warning: exported function Fuzz_CheckFilePath should have comment or be unexported (golint)
    • Line 27: warning: don't use underscores in Go names; func Fuzz_CheckFilePath should be FuzzCheckFilePath (golint)
    • Line 31: warning: exported function Fuzz_CheckImportPath should have comment or be unexported (golint)
    • Line 31: warning: don't use underscores in Go names; func Fuzz_CheckImportPath should be FuzzCheckImportPath (golint)
    • Line 35: warning: exported function Fuzz_CheckPath should have comment or be unexported (golint)
    • Line 35: warning: don't use underscores in Go names; func Fuzz_CheckPath should be FuzzCheckPath (golint)
    • Line 39: warning: exported function Fuzz_EscapePath should have comment or be unexported (golint)
    • Line 39: warning: don't use underscores in Go names; func Fuzz_EscapePath should be FuzzEscapePath (golint)
    • Line 43: warning: exported function Fuzz_EscapeVersion should have comment or be unexported (golint)
    • Line 43: warning: don't use underscores in Go names; func Fuzz_EscapeVersion should be FuzzEscapeVersion (golint)
    • Line 47: warning: exported function Fuzz_MatchPathMajor should have comment or be unexported (golint)
    • Line 47: warning: don't use underscores in Go names; func Fuzz_MatchPathMajor should be FuzzMatchPathMajor (golint)
    • Line 51: warning: exported function Fuzz_SplitPathVersion should have comment or be unexported (golint)
    • Line 51: warning: don't use underscores in Go names; func Fuzz_SplitPathVersion should be FuzzSplitPathVersion (golint)
    • Line 55: warning: exported function Fuzz_UnescapePath should have comment or be unexported (golint)
    • Line 55: warning: don't use underscores in Go names; func Fuzz_UnescapePath should be FuzzUnescapePath (golint)
    • Line 59: warning: exported function Fuzz_UnescapeVersion should have comment or be unexported (golint)
    • Line 59: warning: don't use underscores in Go names; func Fuzz_UnescapeVersion should be FuzzUnescapeVersion (golint)
    • fzgo/genfuzzfuncs/examples/test-exported/examples.go
    • Line 21: warning: exported method TypeExported.PointerExportedMethod should have comment or be unexported (golint)
    • Line 22: warning: exported method TypeExported.NonPointerExportedMethod should have comment or be unexported (golint)
    • Line 24: warning: exported var ExportedLiteral should have comment or be unexported (golint)
    • fzgo/genfuzzfuncs/examples/uuid/uuid_fuzz.go
    • Line 11: warning: exported function Fuzz_UUID_MarshalBinary should have comment or be unexported (golint)
    • Line 11: warning: don't use underscores in Go names; func Fuzz_UUID_MarshalBinary should be FuzzUUIDMarshalBinary (golint)
    • Line 15: warning: exported function Fuzz_UUID_MarshalText should have comment or be unexported (golint)
    • Line 15: warning: don't use underscores in Go names; func Fuzz_UUID_MarshalText should be FuzzUUIDMarshalText (golint)
    • Line 19: warning: exported function Fuzz_UUID_UnmarshalBinary should have comment or be unexported (golint)
    • Line 19: warning: don't use underscores in Go names; func Fuzz_UUID_UnmarshalBinary should be FuzzUUIDUnmarshalBinary (golint)
    • Line 26: warning: exported function Fuzz_UUID_UnmarshalText should have comment or be unexported (golint)
    • Line 26: warning: don't use underscores in Go names; func Fuzz_UUID_UnmarshalText should be FuzzUUIDUnmarshalText (golint)
    • Line 35: warning: exported function Fuzz_Time_UnixTime should have comment or be unexported (golint)
    • Line 35: warning: don't use underscores in Go names; func Fuzz_Time_UnixTime should be FuzzTimeUnixTime (golint)
    • Line 39: warning: exported function Fuzz_UUID_ClockSequence should have comment or be unexported (golint)
    • Line 39: warning: don't use underscores in Go names; func Fuzz_UUID_ClockSequence should be FuzzUUIDClockSequence (golint)
    • Line 43: warning: exported function Fuzz_UUID_Domain should have comment or be unexported (golint)
    • Line 43: warning: don't use underscores in Go names; func Fuzz_UUID_Domain should be FuzzUUIDDomain (golint)
    • Line 47: warning: exported function Fuzz_UUID_ID should have comment or be unexported (golint)
    • Line 47: warning: don't use underscores in Go names; func Fuzz_UUID_ID should be FuzzUUIDID (golint)
    • Line 51: warning: exported function Fuzz_UUID_NodeID should have comment or be unexported (golint)
    • Line 51: warning: don't use underscores in Go names; func Fuzz_UUID_NodeID should be FuzzUUIDNodeID (golint)
    • Line 55: warning: exported function Fuzz_Domain_String should have comment or be unexported (golint)
    • Line 55: warning: don't use underscores in Go names; func Fuzz_Domain_String should be FuzzDomainString (golint)
    • Line 59: warning: exported function Fuzz_UUID_String should have comment or be unexported (golint)
    • Line 59: warning: don't use underscores in Go names; func Fuzz_UUID_String should be FuzzUUIDString (golint)
    • Line 63: warning: exported function Fuzz_UUID_Time should have comment or be unexported (golint)
    • Line 63: warning: don't use underscores in Go names; func Fuzz_UUID_Time should be FuzzUUIDTime (golint)
    • Line 67: warning: exported function Fuzz_UUID_URN should have comment or be unexported (golint)
    • Line 67: warning: don't use underscores in Go names; func Fuzz_UUID_URN should be FuzzUUIDURN (golint)
    • Line 71: warning: exported function Fuzz_UUID_Value should have comment or be unexported (golint)
    • Line 71: warning: don't use underscores in Go names; func Fuzz_UUID_Value should be FuzzUUIDValue (golint)
    • Line 75: warning: exported function Fuzz_UUID_Variant should have comment or be unexported (golint)
    • Line 75: warning: don't use underscores in Go names; func Fuzz_UUID_Variant should be FuzzUUIDVariant (golint)
    • Line 79: warning: exported function Fuzz_UUID_Version should have comment or be unexported (golint)
    • Line 79: warning: don't use underscores in Go names; func Fuzz_UUID_Version should be FuzzUUIDVersion (golint)
    • Line 83: warning: exported function Fuzz_Variant_String should have comment or be unexported (golint)
    • Line 83: warning: don't use underscores in Go names; func Fuzz_Variant_String should be FuzzVariantString (golint)
    • Line 87: warning: exported function Fuzz_Version_String should have comment or be unexported (golint)
    • Line 87: warning: don't use underscores in Go names; func Fuzz_Version_String should be FuzzVersionString (golint)
    • Line 91: warning: exported function Fuzz_FromBytes should have comment or be unexported (golint)
    • Line 91: warning: don't use underscores in Go names; func Fuzz_FromBytes should be FuzzFromBytes (golint)
    • Line 97: warning: exported function Fuzz_MustParse should have comment or be unexported (golint)
    • Line 97: warning: don't use underscores in Go names; func Fuzz_MustParse should be FuzzMustParse (golint)
    • Line 101: warning: exported function Fuzz_NewDCESecurity should have comment or be unexported (golint)
    • Line 101: warning: don't use underscores in Go names; func Fuzz_NewDCESecurity should be FuzzNewDCESecurity (golint)
    • Line 107: warning: exported function Fuzz_NewMD5 should have comment or be unexported (golint)
    • Line 107: warning: don't use underscores in Go names; func Fuzz_NewMD5 should be FuzzNewMD5 (golint)
    • Line 113: warning: exported function Fuzz_NewSHA1 should have comment or be unexported (golint)
    • Line 113: warning: don't use underscores in Go names; func Fuzz_NewSHA1 should be FuzzNewSHA1 (golint)
    • Line 117: warning: exported function Fuzz_Parse should have comment or be unexported (golint)
    • Line 117: warning: don't use underscores in Go names; func Fuzz_Parse should be FuzzParse (golint)
    • Line 121: warning: exported function Fuzz_ParseBytes should have comment or be unexported (golint)
    • Line 121: warning: don't use underscores in Go names; func Fuzz_ParseBytes should be FuzzParseBytes (golint)
    • Line 125: warning: exported function Fuzz_SetClockSequence should have comment or be unexported (golint)
    • Line 125: warning: don't use underscores in Go names; func Fuzz_SetClockSequence should be FuzzSetClockSequence (golint)
    • Line 129: warning: exported function Fuzz_SetNodeID should have comment or be unexported (golint)
    • Line 129: warning: don't use underscores in Go names; func Fuzz_SetNodeID should be FuzzSetNodeID (golint)
    • Line 133: warning: exported function Fuzz_SetNodeInterface should have comment or be unexported (golint)
    • Line 133: warning: don't use underscores in Go names; func Fuzz_SetNodeInterface should be FuzzSetNodeInterface (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!