From 88d0824d85c0f74a012521d25678a5b01c76feb1 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 27 Apr 2025 15:49:41 -0700 Subject: ci: check legacy configs *last* #3797 Sometimes we want to make an exception for some bug fixes. In that case, we want all the *other* lint checks to run. --- .github/ci/lint.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to '.github') diff --git a/.github/ci/lint.sh b/.github/ci/lint.sh index 49f6a9a8..0433f4cf 100644 --- a/.github/ci/lint.sh +++ b/.github/ci/lint.sh @@ -21,12 +21,6 @@ _check_generated_docs() { fi } -_check_legacy_configs() { - if ! git diff "${REF_BRANCH}"..."${PR_BRANCH}" --exit-code -- lua/lspconfig/configs/ ; then - _fail 'Configs in `lua/lspconfig/configs/*` are deprecated. Add or update configs in `lsp/*` instead.' - fi -} - # Enforce buffer-local commands. _check_cmd_buflocal() { if git grep -P 'nvim_create_user_command' -- 'lsp/*.lua' ; then @@ -88,11 +82,17 @@ _check_deprecated_utils() { fi } +_check_legacy_configs() { + if ! git diff "${REF_BRANCH}"..."${PR_BRANCH}" --exit-code -- lua/lspconfig/configs/ ; then + _fail 'Configs in `lua/lspconfig/configs/*` are deprecated. Add or update configs in `lsp/*` instead.' + fi +} + _check_generated_docs -_check_legacy_configs _check_cmd_buflocal _check_brief_placement _check_lsp_cmd_prefix _check_exec_cmd _check_deprecated_in_nvim_0_11 _check_deprecated_utils +_check_legacy_configs -- cgit v1.2.3-70-g09d2