]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
Update AGENTS.md with debug printing note
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 29 Jan 2026 10:30:50 +0000 (11:30 +0100)
committerGitHub <noreply@github.com>
Thu, 29 Jan 2026 10:30:50 +0000 (11:30 +0100)
Added note about debug printing and CI build failure.

AGENTS.md

index e0dd4bba180892331d13cf9a2cba636d52bc7bc2..365cef232f15b2fdf7b3f4da17ac1bc8d646a19a 100644 (file)
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -3,8 +3,11 @@
    * Don't use comments to explain the obvious.
    * Use self-explanatory variable and function names.
    * Use short variable names when the context is clear.
+* If you need to add temporary debug printing, use `hdebug.Printf`.[^1]
 * Never export symbols that's not needed outside of the package.
 * Avoid global state at (almost) all cost.
 * This is a project with a long history; assume that a similiar problem has been solved before, look hard for helper functions before creating new ones.
 * Use `go test ./somepackage/...` when iterating.
-* Use `mage check` when you're done.
\ No newline at end of file
+* Use `mage check` when you're done.
+
+[^1]: CI build fail if you forget to remove the debug printing.