Skip to content

Commit

Permalink
Makefile.lint: remove redundant targets, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sighook committed Dec 20, 2023
1 parent def607c commit 1cf79f8
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 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 podchecker shellcheck cppcheck flawfinder longlines
all: deadlinks spellcheck podchecker shellcheck longlines

######################################################################
# Helpers. #
Expand All @@ -20,6 +20,10 @@ curllinks:
# Main Targets. #
######################################################################

deadlinks:
@echo "=======> Check for dead links"
@$(CURMAKE) curllinks | grep -v '^\[200\]' | sort -u

spellcheck:
@echo "=======> Check handbook for spelling errors"
@$(MAKE) -s pod
Expand All @@ -28,10 +32,6 @@ spellcheck:
@echo "=======> Check README.md for spelling errors"
@hunspell -l README.md | sort -u

deadlinks:
@echo "=======> Check for dead links"
@$(CURMAKE) curllinks | grep -v '^\[200\]' | sort -u

podchecker:
@echo "=======> Check PODs for syntax errors"
@$(MAKE) -s pod
Expand All @@ -43,23 +43,14 @@ shellcheck:
@grep -m1 -Irl '^#\s*!/bin/sh' --exclude-dir=.git* \
| xargs -L10 -r shellcheck -s sh

cppcheck:
@echo "=======> Static C/C++ code analysis"
@cppcheck --quiet --enable=all --check-level=exhaustive \
--suppress=missingIncludeSystem .

flawfinder:
@echo "=======> Check for potential security flaws"
@flawfinder --quiet -D .

longlines:
@echo "=======> Check for long lines"
@! grep -PIrn '^.{81,}$$' --exclude-dir=.git*

######################################################################

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

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

0 comments on commit 1cf79f8

Please sign in to comment.