summaryrefslogtreecommitdiff
path: root/scripts/warn-undocumented
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-05-18 17:15:57 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2025-05-18 17:15:57 +0300
commit0e6bc60ceb3d2676fae166308668680a2f675d17 (patch)
tree0f7ebe21dafb8f7546e36b91645e4e5281fff856 /scripts/warn-undocumented
downloadberg-0e6bc60ceb3d2676fae166308668680a2f675d17.tar.gz
berg-0e6bc60ceb3d2676fae166308668680a2f675d17.zip
initial rough skeleton
+ Naive/fast allocation hashmap + Stores/loads are currently all checked, the idea about static analysis to skip checks is still TODO
Diffstat (limited to 'scripts/warn-undocumented')
-rwxr-xr-xscripts/warn-undocumented7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/warn-undocumented b/scripts/warn-undocumented
new file mode 100755
index 0000000..db22249
--- /dev/null
+++ b/scripts/warn-undocumented
@@ -0,0 +1,7 @@
+#!/bin/sh
+# look through all files for either @file or \file
+for file in $@
+do
+ grep -c '[@\]file' "$file" |\
+ awk -F':' "\$1 == 0 {print \"Undocumented file: $file\"}"
+done