From 310851724625b9cbd4dd6b90135a7530b735b358 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 4 Oct 2022 11:35:57 +0200 Subject: Add initial linting script based on splint --- lint.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 lint.sh (limited to 'lint.sh') diff --git a/lint.sh b/lint.sh new file mode 100755 index 0000000..5264112 --- /dev/null +++ b/lint.sh @@ -0,0 +1,10 @@ +#!/bin/sh + + +if ! command -v splint 2> /dev/null +then + echo "Please install splint (http://splint.org/)!" + exit 1 +fi + +find . -type f -iname '*.c' | xargs splint -- cgit v1.2.3-70-g09d2