-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
Support for .luacheckrc configuration file. #92
Comments
I don't use |
Would still be lovely to have as an option :) |
Any news about maybe reconsidering this? |
@sumneko thoughts? as an alternative maybe https://github.com/Kampfkarren/selene Kampfkarren/selene#22 |
Maybe when I'm free, I can support a small number of them, such as "defined global variables.". |
I was able to implement some basics for .luacheckrc in neovim, perhaps you can try something like this |
I understand that a full implementation would be a project of its own. Especially considering the directives such as A minimal support for looking up the tree to find a .luacheckrc file and at least respecting the Question: does your parser support a similar file that we could include in our projects? |
Would putting https://luals.github.io/wiki/settings/#diagnosticsglobals in a .luarc.json file in my projects base directory do the trick? If so maybe we can come up with a basic converter of .luacheckrc files to .luarc.json |
luacheck and luals are different toolsClearly
I don't think it is a good idea for luals to support maybe a generator tool?
Yeah, I agree with this point. 👍 global variable definition in luals
Considering only the globals related setting from
luals-way to define globalsIn a more luals-way to define globals, one would write definition files: https://luals.github.io/wiki/definition-files/
---@meta
myglobal1 = nil ---@type string
myglobal2 = nil ---@type integer
---@class GlobalClass
GlobalClass = {}
---@param a string
---@return boolean
function globalFunc(a) end
disabling some luals diagnosticsEach diagnostic can be disabled independently using the
{
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
// will use luacheck to check for globals instead
"diagnostics.disable": [
"undefined-global"
]
} => no more
Hope this can give you some insights on how you can solve your problems 😄 @SwissalpS |
Support for .luacheckrc configuration file so that errors/warnings/globals etc can also be disabled over it and shared with other users properly instead of the current only way via settings.
The text was updated successfully, but these errors were encountered: