aboutsummaryrefslogtreecommitdiff
path: root/todostat.awk
blob: be29d8f07d71b7f1d4a3c89e4acf704f604b217a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/^\+-/ { if (state < 3) state++; else state = -1; next }
/^\|/   { if (state == 1) state++; else state = -1; next }
state != 3 { next }
{ total++ }
$3=="[X]" { impl++; if ($4 != "[X]") print $1, "not documented"; }
$4=="[X]" { doc++; }
END {
	if (!total)
		exit(0);
	printf("Total      : %4d\n", total);
	printf("Implemented: %4d / %3d%%\n", impl, impl * 100 / total);
	printf("Documented : %4d / %3d%%\n", doc, doc * 100 / total);
}
	

Return to:

Send suggestions and report system problems to the System administrator.