LuaHelper
LuaHelper copied to clipboard
any option to disable lint for a section of code (e.g. --luahelper-format-disable)
report = function(self, data)
-- Play a notification sound (using ReadyCheck sound as it's distinctive but not annoying)
PlaySound(SOUNDKIT.READY_CHECK or "ReadyCheck", "Master")
--luahelper-format-disable
print(string.format(
"|cFFFFFF00Hour Report|r\n" ..
"Experience: %d\n" ..
"Monsters: %d (avg exp: %.1f)\n" ..
"Avg Kill Time: %.1fs\n" ..
"Quests: %d (avg exp: %.1f)\n" ..
"Distance: %.1f yards\n" ..
"Idle time: %dm\n" ..
"Commute time: %dm",
data.exp,
data.monsters,
data.monster_exp,
data.avg_kill_time,
data.quests,
data.quest_exp,
data.distance,
math.floor(data.idle / 60),
math.floor(data.commute_time / 60)))
--luahelper-format-enable
end,