Skip to content

Commit

Permalink
Improve code readability
Browse files Browse the repository at this point in the history
  • Loading branch information
rdavid committed Jan 7, 2024
1 parent 700d546 commit cf4503c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions lint.do
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ redo-ifchange \
# shellcheck disable=SC2034 # Variable appears unused.
readonly \
BASE_APP_VERSION=0.9.20240106 \
BASE_APP_VERSION=0.9.20240107 \
BASE_MIN_VERSION=0.9.20231212 \
BSH=/usr/local/bin/base.sh
[ -r "$BSH" ] || {
Expand All @@ -21,12 +21,14 @@ set -- "$@" --quiet
# shellcheck disable=SC1090 # File not following.
. "$BSH"
cmd_exists shellcheck &&
find app -name "*" ! -path app ! -name pass -exec shellcheck {} +
cmd_exists shfmt && {
shfmt -d ./*.do
find app -name "*" ! -path app ! -name pass -exec shfmt -d {} +
}
find . \
-name '*.do' \
-or \
-name '*' -not -name pass -path '*/app/*' |
while read -r f; do
cmd_exists shellcheck && shellcheck "$f"
cmd_exists shfmt && shfmt -d "$f"
done
cmd_exists typos && typos
cmd_exists vale && {
vale sync >/dev/null 2>&1 || :
Expand Down

0 comments on commit cf4503c

Please sign in to comment.