Migrate from Luacheck to Selene #108
carlos-algms
announced in
Research
Replies: 1 comment
Additional DiscoveriesWhy Luacheck is UnmaintainedSadly, Peter Melnichenko, the original author and maintainer of luacheck, passed away (Issue #198). The original repository (mpeterv/luacheck) became unmaintained, though the community forked it under Lunar Modules to continue maintenance. However, even the community fork has limited activity since October 2018. Custom Standard Library Definitions (TOML Format)When using selene with custom globals or methods, define them in your stdlib TOML file: For file handle methods like [io.stderr.write]
method = true
[[io.stderr.write.args]]
type = "string"
[io.stdout.write]
method = true
[[io.stdout.write.args]]
type = "string"Key points:
Note: The TOML standard library format is deprecated in favor of YAML, but still fully supported. Use Sources |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Selene vs Luacheck
Benefits
.luacheckrc(Lua, numeric codes)selene.toml(TOML, human-readable names)denyvswarndistinctionStrictness Comparison
Selene is generally MORE strict - catches things luacheck misses:
Luacheck has some features selene lacks:
Neovim Diagnostics Integration
Via none-ls.nvim (active fork of null-ls):
Example selene.toml
For busted tests, need a custom
vim.ymlstdlib that includesdescribe,it,before_each, etc.Sources
All reactions