LUA
Linters
| Linter | Additional |
|---|---|
| luacheck LUA_LUACHECK |
|
| selene LUA_SELENE |
|
| stylua LUA_STYLUA |
Linted files
- File extensions:
.lua
Configuration in MegaLinter
| Variable | Description | Default value |
|---|---|---|
| LUA_PRE_COMMANDS | List of bash commands to run before the linters | None |
| LUA_POST_COMMANDS | List of bash commands to run after the linters | None |
| LUA_FILTER_REGEX_INCLUDE | Custom regex including filter | |
| LUA_FILTER_REGEX_EXCLUDE | Custom regex excluding filter |
Behind the scenes
Installation
- Dockerfile commands :
RUN wget --tries=5 https://www.lua.org/ftp/lua-5.3.5.tar.gz -O - -q | tar -xzf - \
&& cd lua-5.3.5 \
&& make linux \
&& make install \
&& cd .. && rm -r lua-5.3.5/
- APK packages (Linux):