# mpeterv/luacheck

A tool for linting and static analysis of Lua code.

Repository: https://github.com/mpeterv/luacheck
Canonical: https://ross.abutalabs.com/products/luacheck
Language: Lua
License: MIT
License Family: permissive
Topics: lua, linter
Last push: 2022-12-18T19:53:23+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4559, "days_push": 1354, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2047, forks 336 (observed 2026-08-28T04:06:08.944141+00:00)

## What it is
Luacheck is a linter and static analyzer for Lua code, detecting issues like undefined globals, unused variables, and unreachable code. It is written in Lua, supports Lua 5.1-5.3 and LuaJIT syntax, and offers extensive configuration via CLI flags, config files, and inline comments.

## Use cases
- lint lua code for unused variables
- detect undefined global variables in lua project
- static analysis of lua 5.3 codebase
- check luajit scripts for unreachable code
- configure custom globals for lua project linting
- run lua linter in ci pipeline

## When to choose
- you maintain a Lua or LuaJIT codebase and want automated code quality checks
- you need configurable linting with project-specific globals and warning filters
- you want a lightweight CLI linter installable via LuaRocks

## When to avoid
- you need linting for languages other than Lua
- you require an actively developed tool with frequent updates
- you need an IDE-integrated formatter rather than a standalone linter

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: linter, parser, developer-tools
- domain: programming-languages, developer-tools, testing
- platform: cli, cross-platform, lua
- tags: static-analysis, lua, code-quality, luarocks, command-line

## Member repositories
- mpeterv/luacheck (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:08.944141+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:57:58.538095+00:00, confidence not recorded.
  - readme: https://github.com/mpeterv/luacheck (fetched 2026-08-28T04:06:08.944141+00:00, sha d094ce67060e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
