Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 2.69 KB

File metadata and controls

48 lines (36 loc) · 2.69 KB
title LUA linters in MegaLinter
description luacheck, selene, stylua are available to analyze LUA files in MegaLinter

LUA

Linters

Linter Additional
luacheck
LUA_LUACHECK
GitHub stars
selene
LUA_SELENE
disabled GitHub stars
stylua
LUA_STYLUA
GitHub stars

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/