Preparing report...

Report for github.com/codeactual/gomodfuzz

A+    Excellent!    Found 27 issues across 48 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!


gocyclo87%

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.


golint54%

Golint is a linter for Go source code.

    • gomodfuzz/internal/cage/os/file/stage/stage.go
    • Line 30: warning: exported type Plan should have comment or be unexported (golint)
    • Line 42: warning: exported type Stage should have comment or be unexported (golint)
    • Line 65: warning: exported function NewPlan should have comment or be unexported (golint)
    • Line 73: warning: exported function NewStage should have comment or be unexported (golint)
    • Line 99: warning: exported type CopyConfig should have comment or be unexported (golint)
    • Line 111: warning: exported method Stage.Output should have comment or be unexported (golint)
    • Line 127: warning: comment on exported method Stage.Copy should be of the form "Copy ..." (golint)
    • Line 396: warning: exported method Stage.Path should have comment or be unexported (golint)
    • gomodfuzz/internal/cage/testkit/testify/require/require.go
    • Line 21: warning: exported function StringSortedSliceExactly should have comment or be unexported (golint)
    • Line 33: warning: exported function StringSliceExactly should have comment or be unexported (golint)
    • Line 39: warning: exported function MatchRegexp should have comment or be unexported (golint)
    • Line 49: warning: exported function StringContains should have comment or be unexported (golint)
    • gomodfuzz/internal/cage/testkit/os/file/file.go
    • Line 24: warning: exported function FixtureDataDir should have comment or be unexported (golint)
    • Line 28: warning: exported function DynamicDataDir should have comment or be unexported (golint)
    • Line 32: warning: exported function DynamicDataDirAbs should have comment or be unexported (golint)
    • gomodfuzz/internal/cage/strings/set.go
    • Line 11: warning: exported type Set should have comment or be unexported (golint)
    • Line 26: warning: exported method Set.Add should have comment or be unexported (golint)
    • Line 39: warning: exported method Set.AddSet should have comment or be unexported (golint)
    • Line 52: warning: exported method Set.AddSlice should have comment or be unexported (golint)
    • Line 65: warning: exported method Set.Remove should have comment or be unexported (golint)
    • Line 77: warning: exported method Set.Contains should have comment or be unexported (golint)
    • Line 85: warning: exported method Set.Len should have comment or be unexported (golint)
    • Line 92: warning: exported method Set.Slice should have comment or be unexported (golint)
    • Line 103: warning: exported method Set.Copy should have comment or be unexported (golint)
    • Line 114: warning: exported method Set.Equals should have comment or be unexported (golint)
    • Line 134: warning: exported method Set.Clear should have comment or be unexported (golint)
    • Line 143: warning: exported method Set.SortedSlice should have comment or be unexported (golint)
    • Line 151: warning: exported method Set.SortedReverseSlice should have comment or be unexported (golint)
    • gomodfuzz/internal/cage/cli/handler/mixin/log/zap/zap.go
    • Line 36: warning: exported type Mixin should have comment or be unexported (golint)
    • Line 46: warning: comment on exported method Mixin.BindCobraFlags should be of the form "BindCobraFlags ..." (golint)
    • Line 54: warning: comment on exported method Mixin.Name should be of the form "Name ..." (golint)
    • Line 59: warning: comment on exported method Mixin.PreRun should be of the form "PreRun ..." (golint)
    • Line 133: warning: exported method Mixin.ErrToFile should have comment or be unexported (golint)
    • Line 152: warning: comment on exported method Mixin.PostRun should be of the form "PostRun ..." (golint)
    • Line 159: warning: exported method Mixin.ExitOnErr should have comment or be unexported (golint)
    • gomodfuzz/internal/cage/cli/handler/handler.go
    • Line 7: warning: package comment should be of the form "Package handler ..." (golint)
    • Line 39: warning: exported type Mixin should have comment or be unexported (golint)
    • Line 111: warning: exported method DefaultSession.Err should have comment or be unexported (golint)
    • Line 118: warning: exported method DefaultSession.Out should have comment or be unexported (golint)
    • Line 125: warning: exported method DefaultSession.In should have comment or be unexported (golint)
    • Line 145: warning: exported method DefaultSession.SetErr should have comment or be unexported (golint)
    • Line 149: warning: exported method DefaultSession.SetOut should have comment or be unexported (golint)
    • Line 153: warning: exported method DefaultSession.SetIn should have comment or be unexported (golint)
    • Line 157: warning: exported method DefaultSession.OnSignal should have comment or be unexported (golint)
    • Line 177: warning: exported method DefaultSession.ExitOnErr should have comment or be unexported (golint)
    • Line 191: warning: exported method DefaultSession.ExitOnErrShort should have comment or be unexported (golint)
    • Line 205: warning: exported method DefaultSession.ExitOnErrsShort should have comment or be unexported (golint)
    • Line 220: warning: exported method DefaultSession.Exitf should have comment or be unexported (golint)
    • Line 231: warning: exported function EnvPrefix should have comment or be unexported (golint)
    • Line 235: warning: exported function Version should have comment or be unexported (golint)
    • gomodfuzz/internal/cage/os/file/file.go
    • Line 47: warning: exported function Readdir should have comment or be unexported (golint)
    • Line 59: warning: exported function Readdirnames should have comment or be unexported (golint)
    • Line 72: warning: exported function ValidateRemove should have comment or be unexported (golint)
    • Line 87: warning: exported function RemoveAllSafer should have comment or be unexported (golint)
    • Line 94: warning: exported function RemoveSafer should have comment or be unexported (golint)
    • gomodfuzz/internal/cage/os/exec/exec.go
    • Line 7: warning: package comment should be of the form "Package exec ..." (golint)
    • Line 31: warning: exported const SigIntDelay should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported type Result should have comment or be unexported (golint)
    • Line 52: warning: exported type PipelineResult should have comment or be unexported (golint)
    • Line 406: warning: exported function ArgToCmd should have comment or be unexported (golint)
    • gomodfuzz/internal/cage/strings/strings.go
    • Line 15: warning: comment on exported function TruncateAppendHint should be of the form "TruncateAppendHint ..." (golint)
    • Line 23: warning: comment on exported function TruncatePrependHint should be of the form "TruncatePrependHint ..." (golint)
    • Line 66: warning: exported function SliceOfSlice should have comment or be unexported (golint)
    • Line 82: warning: exported function SortStable should have comment or be unexported (golint)
    • Line 86: warning: exported function SortReverseStable should have comment or be unexported (golint)
    • Line 90: warning: comment on exported function StringKeyPtr should be of the form "StringKeyPtr ..." (golint)
    • gomodfuzz/internal/cage/os/file/matcher/matcher.go
    • Line 14: warning: exported function InvertDir should have comment or be unexported (golint)
    • Line 24: warning: exported function InvertFile should have comment or be unexported (golint)
    • Line 34: warning: exported function GoDir should have comment or be unexported (golint)
    • Line 43: warning: exported function PopulatedDir should have comment or be unexported (golint)
    • Line 47: warning: exported function DirWithFile should have comment or be unexported (golint)
    • Line 56: warning: exported function GoFile should have comment or be unexported (golint)
    • gomodfuzz/internal/cage/errors/errors.go
    • Line 51: warning: exported type Location should have comment or be unexported (golint)
    • Line 60: warning: exported type Error should have comment or be unexported (golint)
    • Line 74: warning: exported type Config should have comment or be unexported (golint)
    • Line 92: warning: exported function DefaultConfig should have comment or be unexported (golint)
    • Line 100: warning: exported function NewConfiguredEvent should have comment or be unexported (golint)
    • Line 104: warning: exported function NewEvent should have comment or be unexported (golint)
    • Line 223: warning: exported function WriteErrList should have comment or be unexported (golint)
    • Line 233: warning: exported function Append should have comment or be unexported (golint)
    • gomodfuzz/internal/cage/os/file/finder.go
    • Line 19: warning: exported type FinderFile should have comment or be unexported (golint)
    • Line 24: warning: exported type DirMatcher should have comment or be unexported (golint)
    • Line 25: warning: exported type FileMatcher should have comment or be unexported (golint)
    • Line 33: warning: exported type Finder should have comment or be unexported (golint)
    • Line 40: warning: exported function NewFinder should have comment or be unexported (golint)
    • Line 64: warning: exported method Finder.Clear should have comment or be unexported (golint)
    • Line 71: warning: exported method Finder.WalkHiddenDir should have comment or be unexported (golint)
    • Line 76: warning: exported method Finder.Dir should have comment or be unexported (golint)
    • Line 81: warning: exported method Finder.DirMatcher should have comment or be unexported (golint)
    • Line 156: warning: exported method Finder.GetFileMatches should have comment or be unexported (golint)
    • Line 199: warning: exported method Finder.GetFilenameMatches should have comment or be unexported (golint)
    • Line 213: warning: exported method Finder.GetFileObjectMatches should have comment or be unexported (golint)
    • gomodfuzz/internal/gomodfuzz/scenario.go
    • Line 29: warning: comment on exported const EmptyGopath should be of the form "EmptyGopath ..." (golint)
    • Line 31: warning: exported const UsableGopath should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: comment on exported const WdInsideGopath should be of the form "WdInsideGopath ..." (golint)
    • Line 242: warning: exported method Scenario.Id should have comment or be unexported (golint)
    • Line 246: warning: exported method Scenario.UsableGopath should have comment or be unexported (golint)
    • Line 250: warning: exported method Scenario.Gopath should have comment or be unexported (golint)
    • Line 268: warning: exported method Scenario.Wd should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.

    • gomodfuzz/internal/gomodfuzz/cmd_test.go
    • Line 23: warning: no required module provides package github.com/codeactual/gomodfuzz/internal/cage/os/exec/mocks; to add it: (ineffassign)
    • Line 23: warning: could not import github.com/codeactual/gomodfuzz/internal/cage/os/exec/mocks (invalid package name: "") (ineffassign)
    • Line 10: warning: "bytes" imported but not used (ineffassign)

misspell95%

Misspell Finds commonly misspelled English words