lloyAlloy on GitHub
Lints
Docs

Lints

Updated

alloy flux and alloy lint run them. The [lint] table in alloy.toml sets deny, warn, and allow lists by lint or by group, and strict = true turns the pedantic group on. A lint whose rewrite keeps the program the same carries that rewrite, and alloy flux --fix applies it. The language server shows the same lints as warnings.

correctness 18

Code that is wrong, or cannot run.

suspicious 12

Code that is probably not what the author meant.

style 22

A Luau habit with an Alloy form.

complexity 6

A simple thing done in a hard way; the limits sit in [flux].

perf 3

Code that runs slower than the plain form.

roblox 5

A Roblox API that is deprecated or misused.

pedantic 8

Strict rules, off until [lint] strict = true.

naming 1

The case of names, off until [lint] warn = ["naming"].

alx 1

Markup in .alx files that does not do what it reads as.