neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 8c5bd841edffd5b02b04220ab85ae0e3b7c81953
parent 092e49d020aede54cf5fb586b1d8ab32defa9d67
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Tue, 27 May 2025 08:14:42 +0800

build: lint decorations_spec etc. with lintlua (#34182)

Follow-up to #33274
Diffstat:
MCMakeLists.txt | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -254,6 +254,16 @@ add_glob_target( GLOB_DIRS ${STYLUA_DIRS} GLOB_PAT *.lua TOUCH_STRATEGY PER_DIR) +# Special handling of some files (which are ignored in .styluaignore). +# Workaround because stylua doesn't(?) support file-specific settings. +add_custom_target(lintlua-stylua2 + COMMAND ${STYLUA_PRG} --config-path "${PROJECT_SOURCE_DIR}/.stylua2.toml" + --color=always --check + "${PROJECT_SOURCE_DIR}/test/functional/ui/decorations_spec.lua" + "${PROJECT_SOURCE_DIR}/test/functional/ui/float_spec.lua" + "${PROJECT_SOURCE_DIR}/test/functional/ui/multigrid_spec.lua" +) +add_dependencies(lintlua-stylua lintlua-stylua2) add_custom_target(lintlua) add_dependencies(lintlua lintlua-luacheck lintlua-stylua)