AP_Scripting: add luacheck config

This commit is contained in:
Iampete1 2023-02-14 02:43:23 +00:00 committed by Andrew Tridgell
parent e1db6e38e2
commit fd1a72cc6d
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
-- Don't check globals yet. This requires us to add a list of all the AP bindings
global = false
-- https://luacheck.readthedocs.io/en/stable/warnings.html
ignore = {"631", -- Line is too long
"611", -- A line consists of nothing but whitespace.
"612", -- A line contains trailing whitespace.
"614"} -- Trailing whitespace in a comment.
-- These lua scripts are not for running on AP
exclude_files = {"Tools/CHDK-Scripts/*", "modules/*"}