Skip to content

Commit 9ba067d

Browse files
adding luacheck
1 parent 7ca9e0b commit 9ba067d

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

docs/tools/list.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ For an overview of how CodeRabbit uses these tools when generating code reviews,
2727
| JSX | [Biome][Biome], [oxlint][oxlint] | Code Quality |
2828
| Kotlin | [detekt][detekt] | Code Quality |
2929
| Kubernetes | [Checkov][Checkov] | Code Security |
30+
| Lua | [Luacheck][Luacheck] | Code Quality |
3031
| Markdown | [markdownlint][markdownlint], [LanguageTool][LanguageTool] | Code Quality, Grammar Checking |
3132
| PHP | [PHPStan][PHPStan] | Code Quality |
3233
| Plaintext | [LanguageTool][LanguageTool] | Grammar and Spell Checking |
@@ -72,3 +73,4 @@ For an overview of how CodeRabbit uses these tools when generating code reviews,
7273
[PrismaLint]: /tools/prisma-lint.md
7374
[oxlint]: /tools/oxlint.md
7475
[ShopifyCLI]: /tools/shopify-cli.md
76+
[Luacheck]: /tools/luacheck.md

docs/tools/luacheck.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
title: Luacheck
3+
sidebar_label: Luacheck
4+
description: CodeRabbit's guide to Luacheck.
5+
---
6+
7+
```mdx-code-block
8+
import ProPlanNotice from '@site/src/components/ProPlanNotice.mdx';
9+
10+
<ProPlanNotice />
11+
```
12+
13+
[Luacheck](https://github.com/mpeterv/luacheck) is a static analyzer and linter for Lua code that detects various issues such as undefined global variables, unused variables and values, accessing uninitialized variables, unreachable code, and more.
14+
15+
## Supported Files
16+
17+
Luacheck will run on files with the following extensions:
18+
19+
- `.lua`
20+
21+
## Configuration
22+
23+
Luacheck supports the following configuration files:
24+
25+
- `.luacheckrc`
26+
- `luacheckrc`
27+
- `.luacheckrc.lua`
28+
- `luacheckrc.lua`
29+
30+
:::note
31+
32+
Luacheck does not require configuration to run. If no configuration file is found, it will use default settings.
33+
34+
:::
35+
36+
## Features
37+
38+
Luacheck can detect:
39+
40+
- Usage of undefined global variables
41+
- Unused variables and values
42+
- Accessing uninitialized variables
43+
- Unreachable code
44+
- And many more issues
45+
46+
## Links
47+
48+
- [Luacheck GitHub Repository](https://github.com/mpeterv/luacheck)
49+
- [Luacheck Documentation](https://luacheck.readthedocs.io/)

0 commit comments

Comments
 (0)