From ebad60751133ad16e3f60e425ef73060705cd9d1 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Fri, 16 May 2025 13:08:12 +0300 Subject: [PATCH] luacheckrc: Add luacheck rules --- .luacheckrc | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .luacheckrc 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", + }, +} -- 2.47.3