Lua

The Best Lua Static Analysis Tools (Linters/Formatters)

We rank 9 Lua linters, code analyzers, formatters, and more. Find and compare tools like Mega-Linter, callGraph, luacheck, and more. Please rate and review tools that you've used. This helps others find the best tools for their projects.

3 Lua Tools

luacheck

A tool for linting and static analysis of Lua code.

  • MaintainedMaintained
  • MaintainedLua
  • Maintainedcli
  • Maintainedlinter
  • 92% upvoted

Luanalysis

An IDE for statically typed Lua development.

  • MaintainedMaintained
  • MaintainedLua
  • Maintainedide-plugin
  • Maintainedlinter
  • 100% upvoted

lualint

lualint performs luac-based static analysis of global variable usage in Lua source code.

  • MaintainedMaintained
  • MaintainedLua
  • Maintainedcli
  • Maintainedlinter
  • 100% upvoted

6 Multi-Language Tools

Mega-Linter

Mega-Linter can handle any type of project thanks to its 70+ embedded Linters, its advanced reporting, runnable on any CI system or locally, with assisted installation and configuration, able to apply formatting and fixes

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedcli
  • Maintainedlinter
  • 68% upvoted

callGraph

Statically generates a call graph image and displays it on screen.

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedcli
  • Maintainedlinter
  • 84% upvoted

lizard

Lizard is an extensible Cyclomatic Complexity Analyzer for many programming languages including C/C++ (doesn't require all the header files or Java imports). It also does copy-paste detection (code clone detection/code duplicate detection) and many other forms of static code analysis. Counts lines of code without comments, CCN (cyclomatic complexity number), token count of functions, parameter count of functions.

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedcli
  • Maintainedlinter
  • 100% upvoted

Sigrid

Sigrid helps you to improve your software by measuring your system's code quality, and then compares the results against a benchmark of thousands of industry systems to give you concrete advice on areas where you can improve.

  • MaintainedMaintained
  • MaintainedMulti-Language
  • MaintainedcliMaintainedservice
  • Maintainedlinter
  • 50% upvoted

StaticReviewer

Static Reviewer executes code checks according to the most relevant Secure Coding Standards, OWASP, CWE, CVE, CVSS, MISRA, CERT, for 40+ programming languages, using 1000+ built-in validation rules for Security, Deadcode & Best Practices Available a module for Software Composition Analysis (SCA) to find vulnerabilities in open source and third party libraries.

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedcli
  • Maintainedlinter
  • 50% upvoted

TscanCode

A fast and accurate static analysis solution for C/C++, C#, Lua codes provided by Tencent. Using GPLv3 license.

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedcli
  • Maintainedlinter
  • 50% upvoted

Frequently Asked Questions

What are Lua tools?

Lua is a powerful, lightweight programming language designed for extending applications. It has been used in video games, mobile apps, and web development. Lua's simple syntax and efficient use of memory make it an ideal choice for scripting.

What are the best Lua static analysis tools and linters?

The most popular Lua tools ranked by user votes are: Mega-Linter, callGraph, luacheck, Luanalysis, lizard.

Which Lua services are free for open source projects?

Commercial services with a free plan for open source include Mega-Linter, callGraph, luacheck, Luanalysis, lizard, lualint, TscanCode.

Our Sponsors

This website is completely open source. To fund our work, we fully rely on sponsors. Thanks to them, we can keep the site free for everybody. Please check out their offers below.

  • BugProve
  • Pixee
  • semgrep
  • Offensive 360
  • BetterScan