AP_Scripting: docs: ignore luacheck warnings

This commit is contained in:
Iampete1 2023-02-14 02:48:43 +00:00 committed by Andrew Tridgell
parent 02e9bf6ff5
commit 11f6b5c3ea
2 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,8 @@
-- This file should be auto generated and then manual edited
-- generate with --scripting-docs, eg ./waf copter --scripting-docs
-- see: https://github.com/sumneko/lua-language-server/wiki/EmmyLua-Annotations
-- luacheck: ignore 212 (Unused argument)
-- luacheck: ignore 241 (Local variable is mutated but never accessed)
-- set and get for field types share function names
---@diagnostic disable: duplicate-set-field

View File

@ -2898,7 +2898,9 @@ int main(int argc, char **argv) {
fprintf(docs, "-- ArduPilot lua scripting documentation in EmmyLua Annotations\n");
fprintf(docs, "-- This file should be auto generated and then manual edited\n");
fprintf(docs, "-- generate with --scripting-docs, eg ./waf copter --scripting-docs\n");
fprintf(docs, "-- see: https://github.com/sumneko/lua-language-server/wiki/EmmyLua-Annotations\n\n");
fprintf(docs, "-- see: https://github.com/sumneko/lua-language-server/wiki/EmmyLua-Annotations\n");
fprintf(docs, "-- luacheck: ignore 212 (Unused argument)\n");
fprintf(docs, "-- luacheck: ignore 241 (Local variable is mutated but never accessed)\n\n");
emit_docs(parsed_userdata, TRUE, TRUE);