mpeterv / luacheck

A tool for linting and static analysis of Lua code.
MIT License
1.92k stars 322 forks source link

How can I disable the luacheck if the lua file is large? #133

Closed membphis closed 7 years ago

membphis commented 7 years ago

In my project, the lua file is too large, it's about 3-5mb(it's generated by machine).

when I open it (visual code), it'll cause high CPU load.

can we skip lua check if the lua file is large? How to do this?

mpeterv commented 7 years ago

If you don't have it already, create luacheck config in the root directory of your project (file named .luacheckrc). Then put exclude_files option into the config file to disable checking for the large file: exclude_files = {"path_to_large_file.lua"}. If the visual code extension you are using is implemented correctly it should work.

mpeterv commented 7 years ago

@membphis does my answer solve your problem?