luacheck
luacheck copied to clipboard
A tool for linting and static analysis of Lua code.
After seeing all the new issues popping up from unaware people I decided to spread awareness. Almost a year ago Peter Melnichenko [has passed away](https://cs.hse.ru/news/227017595.html). I'm going to quote Hisham's...
In `parser.lua`, line 443-444,, may be skip `end` instead of `function`? ```lua -- Parses argument list and the statements. local function parse_function(state, function_range) local paren_range = copy_range(state) check_and_skip_token(state, "(") local...
 even i have tried to solve this error by reinstalling the lua itself but it gave me the error again can anybody pioint out the but it's caused by
There are two types of global variable i want to ignore in luacheck.rc One is global variables start with "g_", such as g_RecTbl, g_PlayerTbl The other is global funcitions How...
I create code with the following contents: ```lua local some_namespace = {} some_namespace.nonexistent_function() print(some_namespace.whyyyyy) ``` Result: ``` $ luacheck badcode.lua Checking badcode.lua OK Total: 0 warnings / 0 errors in...
Why is luarocks saying : Error: unknown option '-e' when installing luacheck...? Is it a luacheck problem? from cmd prompt: luarocks install luacheck Missing dependencies for luacheck 0.24.0-2: argparse >=...
luacheck
The busted project has the concept of matchers than are documented over at https://olivinelabs.com/busted/#matchers and can be used in assertions with the `match` keyword. For example: ```lua assert.spy(s).was_called_with(match.is_string()) ```
Add a sonar formatter that output sonarsource [Generic Issue Data format](https://docs.sonarqube.org/latest/analysis/external-issues/).