From fd1a72cc6d39ac9235ace54a8921d4695af7c957 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Tue, 14 Feb 2023 02:43:23 +0000 Subject: [PATCH] AP_Scripting: add luacheck config --- libraries/AP_Scripting/tests/luacheck.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libraries/AP_Scripting/tests/luacheck.lua diff --git a/libraries/AP_Scripting/tests/luacheck.lua b/libraries/AP_Scripting/tests/luacheck.lua new file mode 100644 index 0000000000..8202bae0f7 --- /dev/null +++ b/libraries/AP_Scripting/tests/luacheck.lua @@ -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/*"}