-
-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selene lint action broken #42
Comments
Hey, thank you for pointing it to me jens! I'll take a look at the workaround to fix it asap, we don't want false linting errors. |
Some interesting background: neovim officially only supports lua 5.1. But the "goto" keyword has been introduced with lua 5.2. So why does our code work? Neovim ships with luajit 2.1.0 which includes some extensions from lua 5.2 https://luajit.org/extensions.html But for this ticket it is questionable if our linter should really accept the full feature set of lua 5.2. Perhaps the best way to fix is to rewrite the one function not to use goto |
Or we switch from selene to luacheck https://github.com/mpeterv/luacheck/ Maybe they support the features of luajit:
And luacheck is also proposed in a new template for nvim plugins: https://github.com/nvim-lua/nvim-lua-plugin-template |
I didn't really understood how to fix that selene issue because I already selected Let's take a look at luacheck, hope it has a github action so we can setup it very quickly. If not then there's no problem, we can do it from scratch :) |
I think it's done. Already changed our linter to luacheck and squashed some errors that luacheck detected :) |
Selene always complains about an unknown goto
This is a known issue (Kampfkarren/selene#224)
The text was updated successfully, but these errors were encountered: