Preparing report...

Report for github.com/sudachen/go-foo

A+    Excellent!    Found 17 issues across 28 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!


gocyclo92%

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.


golint42%

Golint is a linter for Go source code.

    • go-foo/fu/lexic.go
    • Line 3: warning: exported type Lexic should have comment or be unexported (golint)
    • Line 5: warning: exported method Lexic.Accepted should have comment or be unexported (golint)
    • go-foo/fu/reverse.go
    • Line 8: warning: exported function Reverse should have comment or be unexported (golint)
    • Line 22: warning: exported function Reversed should have comment or be unexported (golint)
    • go-foo/lazy/lazy.go
    • Line 13: warning: exported const STOP should have comment or be unexported (golint)
    • Line 15: warning: exported type Stream should have comment or be unexported (golint)
    • Line 16: warning: exported type Source should have comment or be unexported (golint)
    • Line 17: warning: exported type Sink should have comment or be unexported (golint)
    • Line 18: warning: exported type Parallel should have comment or be unexported (golint)
    • Line 23: warning: exported method Source.Map should have comment or be unexported (golint)
    • Line 36: warning: exported method Source.Filter should have comment or be unexported (golint)
    • Line 52: warning: exported method Source.Parallel should have comment or be unexported (golint)
    • Line 99: warning: exported method Source.First should have comment or be unexported (golint)
    • Line 121: warning: exported method Source.Drain should have comment or be unexported (golint)
    • Line 143: warning: exported function Chan should have comment or be unexported (golint)
    • Line 165: warning: exported function List should have comment or be unexported (golint)
    • Line 181: warning: exported method Source.Collect should have comment or be unexported (golint)
    • Line 200: warning: exported method Source.LuckyCollect should have comment or be unexported (golint)
    • Line 208: warning: exported method Source.Count should have comment or be unexported (golint)
    • Line 218: warning: exported method Source.LuckyCount should have comment or be unexported (golint)
    • Line 226: warning: exported method Source.RandFilter should have comment or be unexported (golint)
    • Line 250: warning: exported method Source.RandSkip should have comment or be unexported (golint)
    • Line 254: warning: exported method Source.Rand should have comment or be unexported (golint)
    • Line 258: warning: exported function Error should have comment or be unexported (golint)
    • Line 267: warning: exported function Wrap should have comment or be unexported (golint)
    • Line 270: 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 275: warning: exported method Source.Chain should have comment or be unexported (golint)
    • go-foo/fu/error.go
    • Line 10: warning: exported function Etrace should have comment or be unexported (golint)
    • Line 17: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 21: warning: don't use underscores in Go names; type error_ should be error (golint)
    • Line 32: warning: exported function Panic should have comment or be unexported (golint)
    • Line 36: warning: don't use underscores in Go names; type panic_ should be panic (golint)
    • go-foo/fu/mapifs.go
    • Line 5: warning: exported function MapInterface should have comment or be unexported (golint)
    • Line 13: warning: exported function Strings should have comment or be unexported (golint)
    • go-foo/fu/naivernd.go
    • Line 10: warning: exported type NaiveRandom should have comment or be unexported (golint)
    • Line 14: warning: exported method NaiveRandom.Reseed should have comment or be unexported (golint)
    • Line 18: warning: exported method NaiveRandom.Uint should have comment or be unexported (golint)
    • Line 31: warning: exported method NaiveRandom.Float should have comment or be unexported (golint)
    • go-foo/fu/round.go
    • Line 3: warning: exported function Round64 should have comment or be unexported (golint)
    • Line 11: warning: exported function Round32 should have comment or be unexported (golint)
    • go-foo/fu/struct.go
    • Line 5: warning: exported function FieldsOf should have comment or be unexported (golint)
    • Line 20: warning: exported function AsMap should have comment or be unexported (golint)
    • go-foo/fu/values.go
    • Line 5: warning: exported function Contains should have comment or be unexported (golint)
    • Line 17: warning: exported function ValsOf should have comment or be unexported (golint)
    • go-foo/fu/option.go
    • Line 7: warning: exported function Option should have comment or be unexported (golint)
    • Line 22: warning: exported function IfsOption should have comment or be unexported (golint)
    • Line 26: warning: exported function StrOption should have comment or be unexported (golint)
    • Line 30: warning: exported function IntOption should have comment or be unexported (golint)
    • Line 34: warning: exported function FloatOption should have comment or be unexported (golint)
    • Line 38: warning: exported function BoolOption should have comment or be unexported (golint)
    • Line 42: warning: exported function RuneOption should have comment or be unexported (golint)
    • Line 46: warning: exported function MultiOption should have comment or be unexported (golint)
    • Line 58: warning: exported function StrMultiOption should have comment or be unexported (golint)
    • Line 63: warning: exported function AllStrOptions should have comment or be unexported (golint)
    • go-foo/fu/sort.go
    • Line 8: warning: exported function Sort should have comment or be unexported (golint)
    • Line 21: warning: exported function Sorted should have comment or be unexported (golint)
    • go-foo/lazy/mask.go
    • Line 8: warning: don't use underscores in Go names; type AtomicMask_ should be AtomicMask (golint)
    • Line 8: warning: exported type AtomicMask_ should have comment or be unexported (golint)
    • Line 17: warning: exported function AtomicMask should have comment or be unexported (golint)
    • Line 26: warning: exported function ExtendableAtomicMask should have comment or be unexported (golint)
    • Line 36: warning: exported method AtomicMask_.Lock should have comment or be unexported (golint)
    • Line 67: warning: exported method AtomicMask_.Unlock should have comment or be unexported (golint)
    • Line 79: warning: exported method AtomicMask_.FinCallForAll should have comment or be unexported (golint)
    • go-foo/lazy/pool.go
    • Line 8: warning: don't use underscores in Go names; type AtomicPool_ should be AtomicPool (golint)
    • Line 8: warning: exported type AtomicPool_ should have comment or be unexported (golint)
    • Line 13: warning: exported function AtomicPool should have comment or be unexported (golint)
    • Line 30: warning: exported method AtomicPool_.Allocate should have comment or be unexported (golint)
    • Line 35: warning: exported method AtomicPool_.Release should have comment or be unexported (golint)
    • Line 39: warning: exported method AtomicPool_.Close should have comment or be unexported (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!