AP_Scripting: tests: check.json: check files it gitignore but not self

This commit is contained in:
Iampete1 2024-06-02 20:23:26 +02:00 committed by Andrew Tridgell
parent c5cdc46fb7
commit 93642026aa
1 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,5 @@
{ // lua-language-server config for checking
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"runtime.version": "Lua 5.3",
"runtime.builtin": {
// Not all of the standard functionality is available
@ -10,6 +11,10 @@
"table.clear": "disable",
"table.new": "disable"
},
"workspace": {
// These lua scripts are not for running on AP
"workspace.ignoreDir": ["Tools/CHDK-Scripts/*", "modules/*", "libraries/AP_Scripting/tests/luacheck.lua" ],
"ignoreDir": ["Tools/CHDK-Scripts/*", "modules/*", "libraries/AP_Scripting/tests/luacheck.lua", "lua-language-server/*"],
// Dont use gitignore, it results in skipping checks for in progress scripts running in SITL
"useGitIgnore": false
}
}