-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlint.do
More file actions
34 lines (31 loc) · 845 Bytes
/
lint.do
File metadata and controls
34 lines (31 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# shellcheck shell=sh
# vi:et lbr noet sw=2 ts=2 tw=79 wrap
# SPDX-FileCopyrightText: 2023-2026 David Rabkin
# SPDX-License-Identifier: 0BSD
redo-ifchange \
./.github/workflows/*.yml \
./.github/*.yml \
./*.do \
./Makefile
# shellcheck disable=SC2034 # Variable appears unused.
readonly \
BASE_APP_VERSION=0.9.20250906 \
BSH=/usr/local/bin/base.sh
[ -r "$BSH" ] || {
printf >&2 Please\ install\ Shellbase.\\n
exit 1
}
set -- "$@" --quiet
# shellcheck disable=SC1090 # File not following.
. "$BSH"
cmd_exists actionlint && actionlint
cmd_exists checkmake && checkmake ./Makefile
cmd_exists shellcheck && shellcheck ./*.do
cmd_exists shfmt && shfmt -d ./*.do
cmd_exists typos && typos
cmd_exists yamllint &&
yamllint \
./.github/*.yml \
./.github/workflows/*.yml
# Gracefully handle missing last tool without failing the script.
: