From ada110290e36747a1b17006d860b2fab8e351692 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 14 Jul 2025 11:35:00 -0400 Subject: [PATCH] Luacheck Showcase --- example.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 example.lua diff --git a/example.lua b/example.lua new file mode 100644 index 0000000..adba698 --- /dev/null +++ b/example.lua @@ -0,0 +1,22 @@ +local function divide(a, b) + return a / undefined_var +end + +local function nestedError() + if true then + local x = y + 10 + end + local result = a + b + return result +end + +local function syntaxError() + if true then + print("This will cause a syntax error") + + local missingBracket = +end + +local table = {} +local value = table[undefined_key] +local error = function() end \ No newline at end of file