AP_Scripting: tests: add config files for checks and docs generation

This commit is contained in:
Iampete1 2024-05-03 19:23:36 +01:00 committed by Andrew Tridgell
parent 613074e6e8
commit cc159a44d5
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{ // lua-language-server config for checking
"runtime.version": "Lua 5.3",
"runtime.builtin": {
// Not all of the standard functionality is available
"coroutine": "disable",
"os": "disable",
"debug": "disable",
"ffi": "disable",
"jit": "disable",
"table.clear": "disable",
"table.new": "disable"
},
// These lua scripts are not for running on AP
"workspace.ignoreDir": ["Tools/CHDK-Scripts/*", "modules/*", "libraries/AP_Scripting/tests/luacheck.lua" ],
}

View File

@ -0,0 +1,22 @@
{ // lua-language-server config for docs generation
"runtime.version": "Lua 5.3",
"runtime.builtin": {
"basic": "disable",
"bit": "disable",
"bit32": "disable",
"builtin": "disable",
"coroutine": "disable",
"debug": "disable",
"ffi": "disable",
"io": "disable",
"jit": "disable",
"math": "disable",
"os": "disable",
"package": "disable",
"string": "disable",
"table": "disable",
"table.clear": "disable",
"table.new": "disable",
"utf8": "disable"
}
}