aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-04-27 15:49:41 -0700
committerGitHub <noreply@github.com>2025-04-27 15:49:41 -0700
commit88d0824d85c0f74a012521d25678a5b01c76feb1 (patch)
tree08a8ed12e89368233e931da42751369621251c21 /.github
parentfeat(util): support "package.json5" #3794 (diff)
downloadnvim-lspconfig-88d0824d85c0f74a012521d25678a5b01c76feb1.tar
nvim-lspconfig-88d0824d85c0f74a012521d25678a5b01c76feb1.tar.gz
nvim-lspconfig-88d0824d85c0f74a012521d25678a5b01c76feb1.tar.bz2
nvim-lspconfig-88d0824d85c0f74a012521d25678a5b01c76feb1.tar.lz
nvim-lspconfig-88d0824d85c0f74a012521d25678a5b01c76feb1.tar.xz
nvim-lspconfig-88d0824d85c0f74a012521d25678a5b01c76feb1.tar.zst
nvim-lspconfig-88d0824d85c0f74a012521d25678a5b01c76feb1.zip
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.
Diffstat (limited to '.github')
-rw-r--r--.github/ci/lint.sh14
1 files changed, 7 insertions, 7 deletions
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