Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

any option to disable lint for a section of code (e.g. --luahelper-format-disable) #223

Open
antiwinter opened this issue Dec 30, 2024 · 0 comments

Comments

@antiwinter
Copy link

 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,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant