Skip to content

Commit

Permalink
Makefile.lint: fix shellcheck, mandoc_check -> mancheck
Browse files Browse the repository at this point in the history
  • Loading branch information
sighook committed Dec 3, 2023
1 parent f6c5bcc commit bfe5f61
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Makefile.lint
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

CURMAKE = $(MAKE) -s -f Makefile.lint

all: deadlinks mandoc_check podchecker shellcheck cppcheck \
all: deadlinks mancheck podchecker shellcheck cppcheck \
flawfinder longlines

######################################################################
Expand All @@ -25,19 +25,17 @@ deadlinks:
@echo "=======> Check for dead links"
@$(CURMAKE) curllinks | grep -v '^\[200\]' | sort -u

mandoc_check:
mancheck:
@echo "=======> Check man pages for syntax errors"
@find . -not -path '*/.*' -type f -name '*.[1-9]' \
-exec mandoc -T lint {} +
@mandoc -T lint Pkgfile.5 pkgmk.8 pkgmk.conf.5

podchecker:
@echo "=======> Check PODs for syntax errors"
@find . -name '*.pod' -exec podchecker {} +

shellcheck:
@echo "=======> Check shell scripts for syntax errors"
@grep -m1 -Irl '^#\s*!/bin/sh' --exclude-dir=.git* \
| xargs -L10 -r shellcheck -s sh
@shellcheck -s sh pkgmk

cppcheck:
@echo "=======> Static C/C++ code analysis"
Expand All @@ -55,7 +53,7 @@ longlines:
######################################################################

.PHONY: all greplinks curllinks deadlinks \
mandoc_check podchecker shellcheck cppcheck flawfinder longlines
mancheck podchecker shellcheck cppcheck flawfinder longlines

# vim: cc=72 tw=70
# End of file.

0 comments on commit bfe5f61

Please sign in to comment.