From: Aki Tuomi Date: Fri, 16 May 2025 10:08:12 +0000 (+0300) Subject: luacheckrc: Add luacheck rules X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ebad60751133ad16e3f60e425ef73060705cd9d1;p=thirdparty%2Fdovecot%2Fcore.git luacheckrc: Add luacheck rules --- diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000000..29cec78101 --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,36 @@ +std = "lua53+lua54" + +files["src"] = { + read_globals = { + "dovecot", + "cluster", + "json", + "test_assert", + }, +} + +files["src/lib-lua/test-io-lua.lua"] = { + new_globals = { + "test_write_ostream", + "test_read_simple_istream", + "test_read_many", + "test_read_bytes", + }, +} + +files["src/lib-lua/test-lua-base64.lua"] = { + new_globals = { + "test_base64", + } +} + +files["src/lib-lua/test-lua-http-client.lua"] = { + new_globals = { + "http_request_post", + "script_init", + "test_invalid_set_name", + "test_invalid_set_value_1", + "test_invalid_set_value_2", + "test_invalid_set_value_3", + }, +}