strict
A Lua package to detect reading of undeclared variables and creating of global variables. (by deepmind)
luacheck
A tool for linting and static analysis of Lua code. (by lunarmodules)
strict | luacheck | |
---|---|---|
2 | 5 | |
21 | 326 | |
- | 1.8% | |
10.0 | 5.0 | |
about 9 years ago | 8 days ago | |
Lua | Lua | |
BSD 3-clause "New" or "Revised" License | MIT License |
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.
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.
strict
Posts with mentions or reviews of strict.
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
The module `strict.lua` can be used to raise an error if an attempt is made to get or set a non-existent global variable. To use this: 1. Copy the file `strict.lua` from "https://github.com/deepmind/strict/blob/master/strict.lua", "deepmind/strict" %}. 1. Place the file in `/usr/local/share/lua/5.4/` which is a directory in `package.path`. 1. Run code with `lua -l strict {file-name}.lua`
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
Luacheck is now maintained by lunarmodules.
-
UltiSnips to LuaSnip converter
I first started by reading some tutorials but most of those used parser combinators. For me, parser combinators always caused some issues sooner or later (at least in Lua when trying to parse recursive / nested nodes). An example project that uses this technique is vim-vsnip: https://github.com/hrsh7th/vim-vsnip/blob/master/autoload/vsnip/snippet/parser.vim. Later, I found out that Luacheck uses a different approach which I liked better: https://github.com/lunarmodules/luacheck/blob/master/src/luacheck/parser.lua. That's the project that helped me the most while writing my own parsers for different snippet engines.
-
What love packages/libraries do you guys currently use and consider essential for every project you guys made?
I'm just a contributor to Gabe, but I use luacheck in my other projects. Install it (with hererocks+luarocks on Win and luarocks elsewhere), set it up in your editor, and you'll get warnings about typos and other potential bugs. luacheckrc lets you configure it: turn off warnings you don't care about, customize it for different files.
-
Local function question, clarification.
Use luacheck to find all global and unused variables in your project.
-
Pure Python Nvim Config
I’m not really really sure what exactly you’re relying on that is so specific to Python, but Lu’s appears to have a static analysis linter. https://github.com/luarocks/luacheck
What are some alternatives?
When comparing strict and luacheck you can also consider the following projects:
luacheck - A tool for linting and static analysis of Lua code.
snippet-converter.nvim - Bundle snippets from multiple sources and convert them to your format of choice.
love-shaderscan - better iteration with shaders in love2d
inspect.lua - Human-readable representation of Lua tables
forechan - Go style CSP for Python
kok-snippets
strong - A Lua library that makes your strings stronger!