SublimeLinter/SublimeLinter-luacheck

accessing undefined variables

landoncope opened this issue · 1 comments

My 'globals' and 'ignores' in SublimeLinter.sublime-settings don't seem to have any effect after this last update. The contained variables are getting tagged as errors.

"luacheck": {
                "@disable": false,
                "args": [],
                "excludes": [],
                "globals": [
                    "display",
                    "graphics",
                    "transition",
                    "easing",
                    "timer",
                    "system",
                ],
                "ignore": [
                    "channel",
                    "self",
                    "event",
                    "v",
                    "k",
                ],
                "limit": null,
                "only": []
            }

These sublime-linter settings are no longer supported. Put this into .luacheckrc file in the root of your project:

globals = {"display", "graphics", "transition", "easing", "timer", "system"}
ignore = {"channel", "self", "event", "v", "k"}

See luacheck docs.