aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta/diff.lua
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-09-10 11:00:34 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-09-14 09:58:50 +0200
commiteecddd24164c3c4a250aec25dbd760b283849981 (patch)
tree2124bea255242d4faddbc6756332e9c72e500ba9 /runtime/lua/vim/_meta/diff.lua
parenta49924a318520a3b5c2f210f22a8d450165e89b5 (diff)
downloadrneovim-eecddd24164c3c4a250aec25dbd760b283849981.tar.gz
rneovim-eecddd24164c3c4a250aec25dbd760b283849981.tar.bz2
rneovim-eecddd24164c3c4a250aec25dbd760b283849981.zip
build(lint): use stylua without add_glob_target
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.
Diffstat (limited to 'runtime/lua/vim/_meta/diff.lua')
0 files changed, 0 insertions, 0 deletions