Skip to content

Commit fd6d5c9

Browse files
authored
refactor: remove vint
1 parent 61e510d commit fd6d5c9

3 files changed

Lines changed: 10 additions & 46 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,9 @@ jobs:
99
test:
1010
runs-on: ubuntu-latest
1111

12-
services:
13-
docker:
14-
image: docker:20.10.7
15-
options: --privileged
16-
1712
steps:
1813
- name: Checkout code
1914
uses: actions/checkout@v4
2015

21-
- name: Set up Python
22-
uses: actions/setup-python@v5
23-
with:
24-
python-version: '3.x'
25-
26-
- name: Install dependencies
27-
run: pip install vim-vint
28-
2916
- name: Run tests
3017
run: make test

.vintrc.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

test.sh

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,18 @@ ERRORS=()
66

77
# find all executables and run `shellcheck`
88
for f in $(find . -type f -not -iwholename '*.git*' -not -iwholename '*.vim*' | sort -u); do
9-
if file "$f" | grep --quiet shell; then
10-
{
11-
shellcheck "$f" && echo -e "\\033[32m[OK]\\033[0m: successfully linted $f"
12-
} || {
13-
ERRORS+=("$f")
14-
}
15-
fi
16-
done
17-
18-
for f in $(find . -name '*.vim' ! -name '.vim' ! -path '*undo*' ! -path '*autoload*' ! -path '*plugged*' ! -path '*.config*' | sort -u); do
19-
{
20-
vint "$f" && echo -e "\\033[32m[OK]\\033[0m: sucessfully linted vim script $f"
21-
} || {
22-
ERRORS+=("$f")
23-
}
9+
if file "$f" | grep --quiet shell; then
10+
{
11+
shellcheck "$f" && echo -e "\\033[32m[OK]\\033[0m: successfully linted $f"
12+
} || {
13+
ERRORS+=("$f")
14+
}
15+
fi
2416
done
2517

2618
if [ ${#ERRORS[@]} -eq 0 ]; then
27-
echo "No errors"
19+
echo "No errors"
2820
else
29-
echo "These files failed shellcheck: ${ERRORS[*]}"
30-
exit 1
21+
echo "These files failed shellcheck: ${ERRORS[*]}"
22+
exit 1
3123
fi

0 commit comments

Comments
 (0)