Preparing report...

Report for github.com/OneOfOne/genx

A+    Excellent!    Found 9 issues across 13 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!


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.


golint38%

Golint is a linter for Go source code.

    • genx/seeds/atomicMap/map.go
    • Line 5: warning: package comment should be of the form "Package atomicMap ..." (golint)
    • Line 6: warning: don't use MixedCaps in package name; atomicMap should be atomicmap (golint)
    • Line 15: warning: exported type KT should have comment or be unexported (golint)
    • Line 16: warning: exported type VT should have comment or be unexported (golint)
    • genx/genx.go
    • Line 24: warning: exported type GenX should have comment or be unexported (golint)
    • Line 39: warning: exported function New should have comment or be unexported (golint)
    • Line 119: warning: comment on exported method GenX.ParsePkg should be of the form "ParsePkg ..." (golint)
    • genx/pkg.go
    • Line 18: warning: exported type ParsedFile should have comment or be unexported (golint)
    • Line 23: warning: exported method ParsedFile.WriteFile should have comment or be unexported (golint)
    • Line 27: warning: exported type ParsedPkg should have comment or be unexported (golint)
    • Line 29: warning: exported method ParsedPkg.WritePkg should have comment or be unexported (golint)
    • Line 41: warning: exported method ParsedPkg.MergeAll should have comment or be unexported (golint)
    • Line 86: warning: exported method ParsedPkg.WriteAllMerged should have comment or be unexported (golint)
    • genx/utils.go
    • Line 13: warning: exported method GenX.OrderedRewriters should have comment or be unexported (golint)
    • genx/seeds/set/set.go
    • Line 3: warning: exported type T should have comment or be unexported (golint)
    • Line 5: warning: exported type TSet should have comment or be unexported (golint)
    • Line 7: warning: exported function NewTSet should have comment or be unexported (golint)
    • Line 9: warning: exported method TSet.Set should have comment or be unexported (golint)
    • Line 15: warning: exported method TSet.Has should have comment or be unexported (golint)
    • Line 20: warning: exported method TSet.Unset should have comment or be unexported (golint)
    • Line 26: warning: exported method TSet.Merge should have comment or be unexported (golint)
    • Line 32: warning: exported method TSet.Keys should have comment or be unexported (golint)
    • genx/seeds/sort/utils/utils.go
    • Line 5: warning: package comment should be of the form "Package utils ..." (golint)
    • Line 18: warning: exported type LessSwap should have comment or be unexported (golint)
    • Line 23: warning: comment on exported function InsertionSort should be of the form "InsertionSort ..." (golint)
    • Line 32: warning: comment on exported function SiftDown should be of the form "SiftDown ..." (golint)
    • Line 51: warning: comment on exported function HeapSort should be of the form "HeapSort ..." (golint)
    • Line 65: warning: comment on exported function MedianOfThree should be of the form "MedianOfThree ..." (golint)
    • Line 78: warning: comment on exported function SwapRange should be of the form "SwapRange ..." (golint)
    • Line 85: warning: comment on exported function DoPivot should be of the form "DoPivot ..." (golint)
    • Line 149: warning: comment on exported function QuickSort should be of the form "QuickSort ..." (golint)
    • Line 176: warning: comment on exported function Stable should be of the form "Stable ..." (golint)
    • Line 200: warning: comment on exported function SymMergeFunc should be of the form "SymMergeFunc ..." (golint)
    • Line 265: warning: comment on exported function Rotate should be of the form "Rotate ..." (golint)
    • genx/seeds/atomicValue/value.go
    • Line 1: warning: don't use MixedCaps in package name; atomicValue should be atomicvalue (golint)
    • Line 5: warning: exported type T should have comment or be unexported (golint)
    • Line 17: warning: exported method AtomicT.Load should have comment or be unexported (golint)
    • Line 24: warning: exported method AtomicT.Store should have comment or be unexported (golint)
    • Line 30: warning: exported method AtomicT.Swap should have comment or be unexported (golint)
    • Line 37: warning: exported method AtomicT.CompareAndSwap 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!