aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-01-21 00:39:49 -0300
committerEuAndreh <eu@euandre.org>2022-02-19 16:33:23 -0300
commit8ef57ad77143488eb79f820f563071ae1a87c3cb (patch)
tree56e1ab6d13f96c515979e1ca9417c3458cbee10d
parentaux/: Update (diff)
downloadtd-8ef57ad77143488eb79f820f563071ae1a87c3cb.tar.gz
td-8ef57ad77143488eb79f820f563071ae1a87c3cb.tar.xz
aux/workflow/assert-todos.sh: Remove ad-hoc TODOs.md linting rules
-rw-r--r--aux/containers/guix/manifest.scm1
-rwxr-xr-xaux/workflow/assert-todos.sh49
2 files changed, 2 insertions, 48 deletions
diff --git a/aux/containers/guix/manifest.scm b/aux/containers/guix/manifest.scm
index 74f9220..868fb6c 100644
--- a/aux/containers/guix/manifest.scm
+++ b/aux/containers/guix/manifest.scm
@@ -17,6 +17,7 @@
gettext
po4a-text
mdpo-patched
+ td-latest
hunspell
hunspell-dict-en-utf8
hunspell-dict-pt-utf8
diff --git a/aux/workflow/assert-todos.sh b/aux/workflow/assert-todos.sh
index 11db142..f4fd965 100755
--- a/aux/workflow/assert-todos.sh
+++ b/aux/workflow/assert-todos.sh
@@ -12,51 +12,4 @@ then
exit 1
fi
-awk -F'{#' '
-BEGIN {
- exitstatus = 0
- h2flag = 0
- h2status = ""
- prevline = ""
- idx = 0
- delete ids[0]
-}
-h2flag == 1 {
- split($0, l, " ")
- timelinestatus = l[2]
- if (h2status != timelinestatus) {
- print "h2/timeline status mismatch for line " NR-1
- print prevline
- print $0
- exitstatus = 1
- }
- h2status = ""
- h2flag = 0
-}
-
-/^## (TODO|DOING|WAITING|MEETING|INACTIVE|NEXT|CANCELLED|DONE|WONTFIX)/ {
- if (match($0, / \{#.*?\}.*$/) == 0) {
- print "Missing ID for line " NR ":\n" $0
- exitstatus = 1
- }
- id_with_prefix = substr($2, 0, length($2) - 1)
- match(id_with_prefix, /^\w+-/)
- id = substr(id_with_prefix, RLENGTH + 1)
- if (id in arr) {
- print "Duplicate ID: " id
- exitstatus = 1
- } else {
- arr[id] = 1
- }
-
- split($0, l, " ")
- h2status = l[2]
- h2flag = 1
- prevline = $0
-}
-
-
-/^# Scratch$/ {
- exit exitstatus
-}
-' TODOs.md
+td -L