From 0879a9baae50ded08e1075f2a2759584f23d69e5 Mon Sep 17 00:00:00 2001 From: gaymeowing <62822174+gaymeowing@users.noreply.github.com> Date: Thu, 8 Jan 2026 21:08:25 -0500 Subject: [PATCH 1/2] initial commit --- src/content/docs/getting-started/lint.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/getting-started/lint.md b/src/content/docs/getting-started/lint.md index c9cfcbc..40e9070 100644 --- a/src/content/docs/getting-started/lint.md +++ b/src/content/docs/getting-started/lint.md @@ -1,6 +1,6 @@ --- slug: lint -title: Luau's linter +title: Linter sidebar: order: 4 --- @@ -317,7 +317,7 @@ In addition, when type information is present, this warning will be emitted when local message = { data = { 1, 2, 3 } } if #message == 0 then -- Using '#' on a table without an array part is likely a bug -end +end ``` ## DuplicateCondition (24) From 20e4eb97323802afdc39b1c223e7f43f7ced720b Mon Sep 17 00:00:00 2001 From: gaymeowing <62822174+gaymeowing@users.noreply.github.com> Date: Thu, 8 Jan 2026 21:12:16 -0500 Subject: [PATCH 2/2] grammar fix --- src/content/docs/getting-started/lint.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/getting-started/lint.md b/src/content/docs/getting-started/lint.md index 40e9070..c608eaf 100644 --- a/src/content/docs/getting-started/lint.md +++ b/src/content/docs/getting-started/lint.md @@ -7,7 +7,7 @@ sidebar: Luau comes with a set of linting passes, that help make sure that the code is correct and consistent. Unlike the type checker, that models the behavior of the code thoroughly and points toward type mismatches that are likely to result in runtime errors, the linter is more opinionated and produces warnings that can often be safely ignored, although it's recommended to keep the code clean of the warnings. -Linter produces many different types of warnings; many of these are enabled by default, and can be suppressed by declaring `--!nolint NAME` at the top of the file. In dire situations `--!nolint` at the top of the file can be used to completely disable all warnings (note that the type checker is still active, and requires a separate `--!nocheck` declaration). +Luau's Linter produces many different types of warnings; many of these are enabled by default, and can be suppressed by declaring `--!nolint NAME` at the top of the file. In dire situations `--!nolint` at the top of the file can be used to completely disable all warnings (note that the type checker is still active, and requires a separate `--!nocheck` declaration). The rest of this page documents all warnings produced by the linter; each warning has a name and a numeric code, the latter is used when displaying warnings. Note that the in-browser version of Luau on this website does not currently use the linter.