From 4775d98fb7e12f7210cf778351767828e551011d Mon Sep 17 00:00:00 2001
From: SmallJoker <mk939@ymail.com>
Date: Thu, 20 Oct 2022 20:08:56 +0200
Subject: [PATCH] Unify and simplify LED/Lamp node definition

---
 .luacheckrc |   26 +++++++++-----------------
 1 files changed, 9 insertions(+), 17 deletions(-)

diff --git a/.luacheckrc b/.luacheckrc
index 96a7aac..7191d7b 100644
--- a/.luacheckrc
+++ b/.luacheckrc
@@ -1,6 +1,8 @@
 unused_args = false
 allow_defined_top = true
-max_line_length = 999
+max_line_length = 150
+-- Allow shadowed variables (callbacks in callbacks)
+redefined = false
 
 globals = {
     "technic", "minetest",
@@ -28,21 +30,11 @@
 
     "protector", "isprotect",
     "homedecor_expect_infinite_stacks",
+    
+    "craftguide", "i3"
 }
 
-files["concrete/init.lua"].ignore = { "steel_ingot" }
-files["technic/machines/MV/tool_workshop.lua"].ignore = { "pos" }
-files["technic/machines/other/frames.lua"].ignore = { "item_texture", "item_type", "adj", "connected", "" }
-files["technic/machines/register/battery_box.lua"].ignore = { "pos", "tube_upgrade" }
-files["technic/machines/register/cables.lua"].ignore = { "name", "from_below", "p" }
-files["technic/machines/register/common.lua"].ignore = { "result" }
-
-files["technic/machines/register/generator.lua"].ignore = { "node" }
-files["technic/machines/switching_station.lua"].ignore = { "pos1", "tier", "poshash" }
-files["technic/radiation.lua"].ignore = { "LAVA_VISC" }
-files["technic/tools/chainsaw.lua"].ignore = { "pos" }
-files["technic/tools/mining_drill.lua"].ignore = { "mode" }
-files["technic_chests/register.lua"].ignore = { "fs_helpers", "name", "locked_after_place" }
-
-files["technic_cnc/cnc.lua"].ignore = { "multiplier" }
-files["wrench/init.lua"].ignore = { "name", "stack" }
+-- Loop warning
+files["technic/machines/other/frames.lua"].ignore = { "" }
+-- Long lines
+files["technic_cnc/cnc_api.lua"].ignore = { "" }
\ No newline at end of file

--
Gitblit v1.8.0