luacheck VS LjTools

Compare luacheck vs LjTools and see what are their differences.

luacheck

A tool for linting and static analysis of Lua code. (by mpeterv)

LjTools

LuaJIT 2.0 bytecode parser, viewer, assembler and test VM. Lua 5.1 parser, IDE and debugger. (by rochus-keller)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
luacheck LjTools
14 11
1,864 251
- -
0.0 0.0
over 1 year ago over 1 year ago
Lua C++
MIT License GNU General Public License v3.0 only
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

luacheck

Posts with mentions or reviews of luacheck. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-10.
  • strict.lua
    4 projects | /r/lua | 10 May 2023
    Not directly related, but luacheck can also help with this.
  • Lua is eye candy
    1 project | /r/love2d | 5 Oct 2022
    Yeah. While you're at it, make a habit of running luacheck on your files as it helps catch a lot of these issues that can sneak in by mistake: https://github.com/mpeterv/luacheck
  • Help me reload my lua config! :)
    4 projects | /r/neovim | 22 Sep 2022
    Using something like https://github.com/mpeterv/luacheck might be helpful too. Will check all the files in a directory and will let you know which one might be problematic.
  • Lsp: Execute callback after server initialized
    2 projects | /r/neovim | 3 Sep 2022
    I'm trying to setup luacheck (via null-ls) to run alongside sumneko-lua (via nvim-lspconfig).
  • A History of Lua
    14 projects | news.ycombinator.com | 10 Aug 2022
    Most of the time nothing is used. The thing is that iterating is so quick, that you find the problems really fast.

    Although, I've been using luacheck https://github.com/mpeterv/luacheck. It is quite nice, but you have to write down the global variables by hand on the config file.

  • Writing a neovim plugin. Please send criticisms to make the code better
    6 projects | /r/neovim | 18 Jun 2022
    Check out luacheck. It can help spot typos or mistakes you've made and warn against anti-patterns. I'd honestly only look into setting it up locally because there's no benefit to putting it in a CI pipeline unless you have one for another reason IMO. This should be all the config you need:
  • Modding Help - Error Diagnosis
    1 project | /r/theriftbreaker | 9 Feb 2022
  • GitHub Successors
    1 project | news.ycombinator.com | 6 Jan 2022
    Sadly the scenario that the successor feature is intended to alleviate has very much become reality. The creator of Luacheck (Peter Melnichenko) passed away a couple of years ago, and ever since then the GitHub repository has been in a state of limbo. Multiple unofficial forks have come and gone, but Peter's is still the first result on Google if you search "luacheck". It isn't even possible to change the README or pin an issue to get people's attention about the fork; to this day people are still posting issues to the old repo.

    And Luacheck is "the" Lua static analysis tool that pretty much everyone uses, so it's a very significant issue.

    https://github.com/mpeterv/luacheck/issues/198

  • Kind of define in lua
    2 projects | /r/lua | 5 Jan 2022
    You are probably right, but luacheck is well aware of which global variables are built-in and it has special comments, such as -- no global or --ignore in case you very want to overwrite them.
  • Is it ok to name a function for example "function self:Example() end" or is it a big mistake? And how to find (directory) location of a function?
    2 projects | /r/lua | 30 Nov 2021
    Calling your function self is as much bad practice as calling it print. Use luacheck to avoid such mistakes.

LjTools

Posts with mentions or reviews of LjTools. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-21.
  • LuaJIT decompiler that supports GOTO statements?
    3 projects | /r/lua | 21 Jun 2023
    I dug a little more and came across this tool which does seem to have the capability to view all LuaJIT Bytecode. https://github.com/rochus-keller/LjTools
  • A History of Lua
    14 projects | news.ycombinator.com | 10 Aug 2022
    > a large lua game code base, over 4000 files, 1.5 million lines of code

    Interesting; how do you manage to keep consistency? Do you have special tools to e.g. detect inadvertent global variables? I once wrote a Smalltalk VM in Lua (https://github.com/rochus-keller/Smalltalk/blob/master/Inter...) which is a much smaller code base but even with this size I quickly would have lost track of e.g. scopes and names without tools I had to write myself (https://github.com/rochus-keller/LJTools).

  • Minimalism in Programming Language Design
    6 projects | news.ycombinator.com | 24 May 2022
  • KT/COBOL — Choosing a VM edition — I need to hear your experiences with the VM you're currently using for your project.
    6 projects | /r/ProgrammingLanguages | 20 May 2022
    Most of my languages have VM backends; see e.g. https://github.com/rochus-keller/Oberon; I implemented different backends generating LuaJIT bytecode; a year ago I switched to Mono which is based on ECMA-335; here is a discussion why I switched: https://github.com/rochus-keller/Oberon/releases/tag/IDEv0.9.0; I implemented utility libraries for both LuaJIT and CIL bytecode; see https://github.com/rochus-keller/LjTools/, https://github.com/rochus-keller/Pelib/ and https://github.com/rochus-keller/MonoTools/. I evaluated many VMs and think the mentioned ones are best suited. There were a lot of challenges with both technologies, what is to be expected, and too much to describe here.
  • LuaJIT for backend?
    6 projects | /r/ProgrammingLanguages | 2 Jan 2022
    LuaJIT is well suited as a backend/runtime environment for custom languages; I did it several times (see e.g. https://github.com/rochus-keller/Smalltalk, https://github.com/rochus-keller/Som/, https://github.com/rochus-keller/Oberon/). I also implemented a bit of infrastructure to ease the reuse: https://github.com/rochus-keller/LjTools. LuaJIT has some limitations though; if you require closures you have to know that the corresponding LuaJIT FNEW bytecode is not yet supported by the JIT, i.e. switches to the interpreter; as a work-around I implemented my own closures; LuaJIT also doesn't support multi-threading, but co-routines; and there is no debugger, and the infrastructure to implement one has limitations (i.e. performance is low when running to breakpoints). For most of my projects this was no issue. Recently I switched to CIL/Mono for my Oberon+ implementation which was a good move. But still I consider LuaJIT a good choice if you can cope with the mentioned limitations. The major advantage of LuaJIT is the small footprint and impressive performance for dynamic languages.
  • Writing a Register Based VM
    3 projects | /r/ProgrammingLanguages | 16 Sep 2021
    Implementing a VM is certainly interesting, but if you just need a fast backend you could generate LuaJIT bytecode (see e.g. https://github.com/rochus-keller/ljtools/ LuaJitComposer.h/cpp).
  • Finl Is Not LaTeX
    8 projects | news.ycombinator.com | 27 May 2021
  • (LuaJIT) How to directly modify strings within LuaJIT Bytecode?
    2 projects | /r/lua | 26 Apr 2021
  • Bytecode for a Register Machine
    5 projects | /r/ProgrammingLanguages | 15 Feb 2021
    If you want to re-use LuaJIT as a backend, have e.g. a look at https://github.com/rochus-keller/ljtools
  • Favorite Program for writing LUA?
    1 project | /r/lua | 23 Dec 2020
    Recently I mostly use https://github.com/rochus-keller/LjTools#lua-parser-and-ide-features

What are some alternatives?

When comparing luacheck and LjTools you can also consider the following projects:

lua-language-server - A language server that offers Lua language support - programmed in Lua

SATySFi - A statically-typed, functional typesetting system

StyLua - An opinionated Lua code formatter

ubpf - Userspace eBPF VM

LuaFormatter - Code formatter for Lua

Oberon - Oberon parser, code model & browser, compiler and IDE with debugger

luau - A fast, small, safe, gradually typed embeddable scripting language derived from Lua

port70 - A Gopher server in Lua

NvChad - Blazing fast Neovim config providing solid defaults and a beautiful UI, enhancing your neovim experience.

tex-rs - A port of TeX82 to Rust. (WIP)

NvChad - An attempt to make neovim cli as functional as an IDE while being very beautiful , blazing fast. [Moved to: https://github.com/NvChad/NvChad]

langs