selene
luacheck
selene | luacheck | |
---|---|---|
5 | 14 | |
535 | 1,864 | |
- | - | |
7.0 | 0.0 | |
9 days ago | over 1 year ago | |
Rust | Lua | |
Mozilla Public License 2.0 | MIT License |
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.
selene
-
Configuring global variables(vim) in selene
Here's an issue about it: https://github.com/Kampfkarren/selene/issues/284
-
Cannot run executables with Alpine and Busybox images
RUN wget -O selene-light-0.14.0-linux.zip https://github.com/Kampfkarren/selene/releases/download/0.14.0/selene-light-0.14.0-linux.zip && \ unzip selene-light-0.14.0-linux.zip && \ rm selene-light-0.14.0-linux.zip && \ chmod +x selene
-
Yes that's what `if_chain!` actually expands to
Traversing an AST. An example from Selene - /src/rules/divide_by_zero.rs#L64-L70.
-
Rojo Yellow Underlines
Pretty sure this is it, but it's been a while since Ive had to set this all up https://github.com/Kampfkarren/selene
luacheck
-
strict.lua
Not directly related, but luacheck can also help with this.
-
Lua is eye candy
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! :)
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
I'm trying to setup luacheck (via null-ls) to run alongside sumneko-lua (via nvim-lspconfig).
-
A History of Lua
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
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
-
GitHub Successors
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
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?
Calling your function self is as much bad practice as calling it print. Use luacheck to avoid such mistakes.
What are some alternatives?
StyLua - An opinionated Lua code formatter
lua-language-server - A language server that offers Lua language support - programmed in Lua
vscode-lua-format - Reformats your Lua source code
static-curl - fully static builds of curl, runs anywhere
LuaFormatter - Code formatter for Lua
tauri - Build smaller, faster, and more secure desktop applications with a web frontend.
luau - A fast, small, safe, gradually typed embeddable scripting language derived from Lua
twilight.nvim - 🌅 Twilight is a Lua plugin for Neovim 0.5 that dims inactive portions of the code you're editing using TreeSitter.
NvChad - Blazing fast Neovim config providing solid defaults and a beautiful UI, enhancing your neovim experience.
MeiliSearch - A lightning-fast search API that fits effortlessly into your apps, websites, and workflow
lua-enumerable - A port of ruby's Enumerable module to Lua