Preparing report...

Report for github.com/bailu1901/goweblua

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


gocyclo88%

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.


golint44%

Golint is a linter for Go source code.

    • goweblua/luajit/const.go
    • Line 14: warning: exported const Version should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported const Signature should have comment (or a comment on this block) or be unexported (golint)
    • Line 72: warning: comment on exported function Upvalueindex should be of the form "Upvalueindex ..." (golint)
    • goweblua/luajit/debug.go
    • Line 63: warning: comment on exported type Hook should be of the form "Hook ..." (with optional leading article) (golint)
    • Line 80: warning: exported function Newdebug should have comment or be unexported (golint)
    • Line 111: warning: comment on exported method Debug.Getinfo should be of the form "Getinfo ..." (golint)
    • Line 142: warning: receiver name d should be consistent with previous receiver name ar for Debug (golint)
    • Line 152: warning: comment on exported method Debug.Getlocal should be of the form "Getlocal ..." (golint)
    • Line 165: warning: receiver name d should be consistent with previous receiver name ar for Debug (golint)
    • Line 174: warning: comment on exported method Debug.Getstack should be of the form "Getstack ..." (golint)
    • Line 181: warning: receiver name d should be consistent with previous receiver name ar for Debug (golint)
    • Line 214: warning: comment on exported method State.Sethook should be of the form "Sethook ..." (golint)
    • Line 250: warning: comment on exported method Debug.Setlocal should be of the form "Setlocal ..." (golint)
    • Line 257: warning: receiver name d should be consistent with previous receiver name ar for Debug (golint)
    • goweblua/luajit/extension.go
    • Line 25: warning: exported method State.Openpbclibs should have comment or be unexported (golint)
    • Line 29: warning: exported method State.Openlpeglibs should have comment or be unexported (golint)
    • Line 33: warning: exported method State.Opencjsonlibs should have comment or be unexported (golint)
    • Line 37: warning: comment on exported method State.Pushlstring should be of the form "Pushlstring ..." (golint)
    • Line 44: warning: exported method State.Tolstring should have comment or be unexported (golint)
    • goweblua/luajit/state.go
    • Line 69: warning: comment on exported function Newstate should be of the form "Newstate ..." (golint)
    • Line 78: warning: comment on exported method State.Setmode should be of the form "Setmode ..." (golint)
    • Line 89: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 94: warning: comment on exported method State.Call should be of the form "Call ..." (golint)
    • Line 116: warning: comment on exported method State.Checkstack should be of the form "Checkstack ..." (golint)
    • Line 124: warning: comment on exported method State.Close should be of the form "Close ..." (golint)
    • Line 135: warning: comment on exported method State.Concat should be of the form "Concat ..." (golint)
    • Line 144: warning: comment on exported method State.Equal should be of the form "Equal ..." (golint)
    • Line 152: warning: comment on exported method State.Lessthan should be of the form "Lessthan ..." (golint)
    • Line 178: warning: comment on exported method State.Dump should be of the form "Dump ..." (golint)
    • Line 196: warning: comment on exported method State.Gc should be of the form "Gc ..." (golint)
    • Line 204: warning: comment on exported method State.Getfenv should be of the form "Getfenv ..." (golint)
    • Line 210: warning: comment on exported method State.Getfield should be of the form "Getfield ..." (golint)
    • Line 218: warning: comment on exported method State.Getupvalue should be of the form "Getupvalue ..." (golint)
    • Line 237: warning: comment on exported method State.Getglobal should be of the form "Getglobal ..." (golint)
    • Line 242: warning: comment on exported method State.Setmetatable should be of the form "Setmetatable ..." (golint)
    • Line 248: warning: comment on exported method State.Gettable should be of the form "Gettable ..." (golint)
    • Line 258: warning: comment on exported method State.Getmetatable should be of the form "Getmetatable ..." (golint)
    • Line 264: warning: comment on exported method State.Gettop should be of the form "Gettop ..." (golint)
    • Line 293: warning: comment on exported method State.Load should be of the form "Load ..." (golint)
    • Line 311: warning: comment on exported method State.Loadstring should be of the form "Loadstring ..." (golint)
    • Line 321: warning: comment on exported method State.Loadfile should be of the form "Loadfile ..." (golint)
    • Line 332: warning: comment on exported method State.Createtable should be of the form "Createtable ..." (golint)
    • Line 340: warning: comment on exported method State.Newtable should be of the form "Newtable ..." (golint)
    • Line 346: warning: comment on exported method State.Next should be of the form "Next ..." (golint)
    • Line 366: warning: comment on exported method State.Newthread should be of the form "Newthread ..." (golint)
    • Line 393: warning: comment on exported method State.Pcall should be of the form "Pcall ..." (golint)
    • Line 417: warning: comment on exported method State.Objlen should be of the form "Objlen ..." (golint)
    • Line 425: warning: comment on exported method State.Openlibs should be of the form "Openlibs ..." (golint)
    • Line 430: warning: comment on exported method State.Settop should be of the form "Settop ..." (golint)
    • Line 437: warning: comment on exported method State.Settable should be of the form "Settable ..." (golint)
    • Line 447: warning: comment on exported method State.Pop should be of the form "Pop ..." (golint)
    • Line 452: warning: comment on exported method State.Insert should be of the form "Insert ..." (golint)
    • Line 459: warning: comment on exported method State.Setglobal should be of the form "Setglobal ..." (golint)
    • Line 464: warning: comment on exported method State.Setfield should be of the form "Setfield ..." (golint)
    • Line 475: warning: comment on exported method State.Setupvalue should be of the form "Setupvalue ..." (golint)
    • Line 489: warning: comment on exported method State.Isfunction should be of the form "Isfunction ..." (golint)
    • Line 495: warning: comment on exported method State.Isnumber should be of the form "Isnumber ..." (golint)
    • Line 501: warning: comment on exported method State.Isstring should be of the form "Isstring ..." (golint)
    • Line 507: warning: comment on exported method State.Istable should be of the form "Istable ..." (golint)
    • Line 513: warning: comment on exported method State.Islightuserdata should be of the form "Islightuserdata ..." (golint)
    • Line 519: warning: comment on exported method State.Isuserdata should be of the form "Isuserdata ..." (golint)
    • Line 526: warning: comment on exported method State.Isgofunction should be of the form "Isgofunction ..." (golint)
    • Line 532: warning: comment on exported method State.Isnil should be of the form "Isnil ..." (golint)
    • Line 538: warning: comment on exported method State.Isboolean should be of the form "Isboolean ..." (golint)
    • Line 544: warning: comment on exported method State.Isthread should be of the form "Isthread ..." (golint)
    • Line 550: warning: comment on exported method State.Isnone should be of the form "Isnone ..." (golint)
    • Line 556: warning: comment on exported method State.Isnoneornil should be of the form "Isnoneornil ..." (golint)
    • Line 563: warning: comment on exported method State.Pushboolean should be of the form "Pushboolean ..." (golint)
    • Line 579: warning: comment on exported method State.Pushclosure should be of the form "Pushclosure ..." (golint)
    • Line 596: warning: comment on exported method State.Pushfunction should be of the form "Pushfunction ..." (golint)
    • Line 606: warning: comment on exported method State.Pushfstring should be of the form "Pushfstring ..." (golint)
    • Line 617: warning: comment on exported method State.Pushinteger should be of the form "Pushinteger ..." (golint)
    • Line 622: warning: comment on exported method State.Pushlightuserdata should be of the form "Pushlightuserdata ..." (golint)
    • Line 632: warning: comment on exported method State.Pushnil should be of the form "Pushnil ..." (golint)
    • Line 637: warning: comment on exported method State.Pushnumber should be of the form "Pushnumber ..." (golint)
    • Line 642: warning: comment on exported method State.Pushstring should be of the form "Pushstring ..." (golint)
    • Line 649: warning: comment on exported method State.Pushthread should be of the form "Pushthread ..." (golint)
    • Line 655: warning: comment on exported method State.Pushvalue should be of the form "Pushvalue ..." (golint)
    • Line 660: warning: comment on exported method State.Rawequal should be of the form "Rawequal ..." (golint)
    • Line 667: warning: comment on exported method State.Rawget should be of the form "Rawget ..." (golint)
    • Line 672: warning: comment on exported method State.Rawgeti should be of the form "Rawgeti ..." (golint)
    • Line 678: warning: comment on exported method State.Rawset should be of the form "Rawset ..." (golint)
    • Line 684: warning: comment on exported method State.Rawseti should be of the form "Rawseti ..." (golint)
    • Line 693: warning: comment on exported method State.Register should be of the form "Register ..." (golint)
    • Line 699: warning: comment on exported method State.Remove should be of the form "Remove ..." (golint)
    • Line 706: warning: comment on exported method State.Replace should be of the form "Replace ..." (golint)
    • Line 713: warning: comment on exported method State.Resume should be of the form "Resume ..." (golint)
    • Line 741: warning: comment on exported method State.Status should be of the form "Status ..." (golint)
    • Line 750: warning: exported method State.Strlen should have comment or be unexported (golint)
    • Line 754: warning: comment on exported method State.Toboolean should be of the form "Toboolean ..." (golint)
    • Line 763: warning: comment on exported method State.Togofunction should be of the form "Togofunction ..." (golint)
    • Line 777: warning: comment on exported method State.Tointeger should be of the form "Tointeger ..." (golint)
    • Line 787: warning: comment on exported method State.Tonumber should be of the form "Tonumber ..." (golint)
    • Line 794: warning: comment on exported method State.Topointer should be of the form "Topointer ..." (golint)
    • Line 805: warning: comment on exported method State.Tostring should be of the form "Tostring ..." (golint)
    • Line 820: warning: comment on exported method State.Tothread should be of the form "Tothread ..." (golint)
    • Line 831: warning: comment on exported method State.Touserdata should be of the form "Touserdata ..." (golint)
    • Line 838: warning: comment on exported method State.Type should be of the form "Type ..." (golint)
    • Line 847: warning: comment on exported method State.Typename should be of the form "Typename ..." (golint)
    • Line 853: warning: comment on exported method State.Xmove should be of the form "Xmove ..." (golint)
    • Line 857: warning: receiver name to should be consistent with previous receiver name s for State (golint)
    • Line 861: warning: comment on exported method State.Yield should be of the form "Yield ..." (golint)
    • goweblua/cmd/api/http/web.go
    • Line 1: warning: package comment should be of the form "Package api_http ..." (golint)
    • Line 2: warning: don't use an underscore in package name (golint)
    • Line 16: warning: exported var Mgr 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!