mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
eecddd2416
add_glob_target is our custom method to figure out whether a work needs to be done or not. This works as expected most of the time, but causes a problem with stylua. Stylua makes the decision that if a file is explicitly passed to be formatted, then it will format the file even if the file is set to be ignored in .styluaignore. This behavior breaks add_glob_target with seemingly no easy workaround. More information: https://github.com/JohnnyMorganz/StyLua/issues/751 Instead, what we can do is call stylua as you would in the command line. This will make stylua work as expected. The downside is that we no longer get a free "is this work necessary" detection, meaning that stylua will be run each time `make lint` is called, regardless if it's necessary or not. For longer lint tasks such as uncrustify and clang-tidy this would be disastrous, but this is an acceptable tradeoff since stylua is very quick.
8 lines
112 B
Plaintext
8 lines
112 B
Plaintext
/scripts
|
|
/src
|
|
/test
|
|
/build
|
|
/runtime/lua/vim/re.lua
|
|
/runtime/lua/vim/_meta/options.lua
|
|
/runtime/lua/coxpcall.lua
|