lloyAlloy on GitHub
--@alloy-ignore-start and --@alloy-ignore-end
Docs

--@alloy-ignore-start and --@alloy-ignore-end

Updated

Silences every line between the pair. The two directive lines are outside the region, so an error on either still reports. A lint name or a checker kind after --@alloy-ignore-start limits the region to that one; every other diagnostic in it still reports.

--@alloy-ignore-start prefer_const
local a = 1
local b = 2
--@alloy-ignore-end
print(a, b)

Pairs nest, and the inner one closes first. --@alloy-ignore-end with a name closes the innermost start with that name. A start with no end silences to the end of the file and is a DirectiveError on its own line; an end that closes nothing is a DirectiveError too.