Preparing report...

Report for github.com/iwdgo/GoCompilerEfficiency

A+    Excellent!    Found 16 issues across 42 files

Tweet

gofmt90%

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!


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!


golint61%

Golint is a linter for Go source code.

    • GoCompilerEfficiency/src/writestring/writestring.go
    • Line 1: warning: package comment should be of the form "Package writestring ..." (golint)
    • Line 17: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • Line 30: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • Line 43: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • GoCompilerEfficiency/src/switch/emptycase.go
    • Line 3: warning: exported function CheckUselessCase should have comment or be unexported (golint)
    • Line 17: warning: exported function CheckReturnDefault should have comment or be unexported (golint)
    • Line 30: warning: exported function CheckNoUselessCase should have comment or be unexported (golint)
    • GoCompilerEfficiency/src/arraysstruct/arraysstruct.go
    • Line 40: warning: exported function Arrays should have comment or be unexported (golint)
    • Line 42: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 47: warning: exported function ArrayStructs should have comment or be unexported (golint)
    • Line 54: warning: exported function MapStructs should have comment or be unexported (golint)
    • GoCompilerEfficiency/src/tofile/tofile.go
    • Line 27: warning: exported function StringToFile should have comment or be unexported (golint)
    • Line 42: warning: exported function BufferToFile should have comment or be unexported (golint)
    • Line 56: warning: exported function ReadCloserToFileOneRead should have comment or be unexported (golint)
    • Line 77: warning: exported function ReadCloserToFileLoop should have comment or be unexported (golint)
    • GoCompilerEfficiency/src/writebuffer/writesbuffer.go
    • Line 1: warning: package comment should be of the form "Package writebuffer ..." (golint)
    • Line 23: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • Line 36: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • Line 49: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • Line 64: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • GoCompilerEfficiency/src/isvalid/isvalid.go
    • Line 11: warning: exported function CheckValueFuncVar should have comment or be unexported (golint)
    • Line 31: warning: exported function CheckValueIfVar should have comment or be unexported (golint)
    • Line 49: warning: exported function CheckValueForFunc should have comment or be unexported (golint)
    • Line 58: warning: exported function CheckValueForIf should have comment or be unexported (golint)
    • GoCompilerEfficiency/src/arrayinit/arrayinit.go
    • Line 1: warning: package comment should be of the form "Package arrayinit ..." (golint)
    • Line 4: warning: comment on exported function InitArrayStatic should be of the form "InitArrayStatic ..." (golint)
    • Line 10: warning: comment on exported function InitArrayMake should be of the form "InitArrayMake ..." (golint)
    • Line 19: warning: comment on exported function InitArrayAppend should be of the form "InitArrayAppend ..." (golint)
    • Line 28: warning: comment on exported function InitArrayAppendStatic should be of the form "InitArrayAppendStatic ..." (golint)
    • GoCompilerEfficiency/src/arrayofarray/arrayofarray.go
    • Line 17: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 23: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 36: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 42: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 53: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 60: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • GoCompilerEfficiency/src/firstitem/firstitem.go
    • Line 7: warning: exported function FirstItemBefore should have comment or be unexported (golint)
    • Line 16: warning: exported function FirstItemIfOnIndex should have comment or be unexported (golint)
    • Line 27: warning: exported function FirstItemIfOnArray should have comment or be unexported (golint)
    • Line 38: warning: exported function FirstItemBeforeUnfair 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!