From 437e41e9fcf3866d766f953a45685ece5957de8d Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Sun, 4 Jul 2021 17:55:11 -0500 Subject: Luacheck: use config file to exclude files --- scripts/pre-push | 7 +++++-- scripts/style-check.sh | 4 ---- 2 files changed, 5 insertions(+), 6 deletions(-) delete mode 100755 scripts/style-check.sh (limited to 'scripts') diff --git a/scripts/pre-push b/scripts/pre-push index 00d4c507..8d425b3b 100755 --- a/scripts/pre-push +++ b/scripts/pre-push @@ -3,5 +3,8 @@ # Can be used as a pre-push hook # Just symlink this file to .git/hooks/pre-push -echo "Running style check..." -./scripts/style-check.sh +echo "Running linter..." +luacheck . + +echo "Checking formatting..." +stylua --check . diff --git a/scripts/style-check.sh b/scripts/style-check.sh deleted file mode 100755 index 8dfb53aa..00000000 --- a/scripts/style-check.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -# ignore indent test files -luacheck `find -name "*.lua" -not -path "./tests/indent/lua/*"` --codes -- cgit v1.2.3