Skip to content

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

@antiwinter

Description

@antiwinter
 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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions