Preparing report...

Report for github.com/starlight-go/starlight

(v0.0.0-20181207205707-b06f321544f3)

A+    Excellent!    Found 7 issues across 18 files

Tweet

gofmt94%

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!


gocyclo94%

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.


golint83%

Golint is a linter for Go source code.

    • starlight/convert/slice.go
    • Line 24: warning: comment on exported function NewGoSlice should be of the form "NewGoSlice ..." (golint)
    • Line 67: warning: exported method GoSlice.Clear should have comment or be unexported (golint)
    • Line 75: warning: exported method GoSlice.Index should have comment or be unexported (golint)
    • Line 83: warning: exported method GoSlice.SetIndex should have comment or be unexported (golint)
    • Line 92: warning: exported method GoSlice.Slice should have comment or be unexported (golint)
    • Line 119: warning: exported method GoSlice.Len should have comment or be unexported (golint)
    • Line 123: warning: exported method GoSlice.Iterate should have comment or be unexported (golint)
    • Line 130: warning: exported method GoSlice.Attr should have comment or be unexported (golint)
    • Line 134: warning: exported method GoSlice.AttrNames should have comment or be unexported (golint)
    • Line 207: warning: don't use underscores in Go names; func list_append should be listAppend (golint)
    • Line 220: warning: don't use underscores in Go names; func list_clear should be listClear (golint)
    • Line 228: warning: don't use underscores in Go names; func list_extend should be listExtend (golint)
    • Line 251: warning: don't use underscores in Go names; func list_index should be listIndex (golint)
    • Line 252: warning: don't use underscores in Go names; var start_ should be start (golint)
    • Line 252: warning: don't use underscores in Go names; var end_ should be end (golint)
    • Line 280: warning: don't use underscores in Go names; func list_insert should be listInsert (golint)
    • Line 311: warning: don't use underscores in Go names; func list_remove should be listRemove (golint)
    • Line 331: warning: don't use underscores in Go names; func list_pop should be listPop (golint)
    • Line 366: warning: don't use underscores in Go names; func parameter start_ should be start (golint)
    • Line 366: warning: don't use underscores in Go names; func parameter end_ should be end (golint)
    • starlight/convert/map.go
    • Line 109: warning: exported method GoMap.Clear should have comment or be unexported (golint)
    • Line 122: warning: exported method GoMap.Delete should have comment or be unexported (golint)
    • Line 147: warning: exported method GoMap.Items should have comment or be unexported (golint)
    • Line 165: warning: exported method GoMap.Keys should have comment or be unexported (golint)
    • Line 177: warning: exported method GoMap.Len should have comment or be unexported (golint)
    • Line 181: warning: exported method GoMap.Iterate should have comment or be unexported (golint)
    • Line 189: warning: exported method GoMap.Attr should have comment or be unexported (golint)
    • Line 193: warning: exported method GoMap.AttrNames should have comment or be unexported (golint)
    • Line 258: warning: don't use underscores in Go names; func dict_get should be dictGet (golint)
    • Line 271: warning: don't use underscores in Go names; func dict_clear should be dictClear (golint)
    • Line 279: warning: don't use underscores in Go names; func dict_items should be dictItems (golint)
    • Line 292: warning: don't use underscores in Go names; func dict_keys should be dictKeys (golint)
    • Line 300: warning: don't use underscores in Go names; func dict_pop should be dictPop (golint)
    • Line 319: warning: don't use underscores in Go names; func dict_popitem should be dictPopitem (golint)
    • Line 340: warning: don't use underscores in Go names; func dict_setdefault should be dictSetdefault (golint)
    • Line 359: warning: don't use underscores in Go names; func dict_update should be dictUpdate (golint)
    • Line 370: warning: don't use underscores in Go names; func dict_values should be dictValues (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell94%

Misspell Finds commonly misspelled English words