Keeping "add a rule" a one-line change: inside gomarklint''s rule engine

go dev.to

"Just add one more check" — and before you know it, a switch grows another branch, the config grows another case, and you're copy-pasting the same setup you already wrote somewhere else. If you've ever worked on code where rules or checks keep piling up, you probably recognize this kind of rot. gomarklint is a Markdown linter, and it currently ships 24 checks (rules). Yet adding a new one touches just a function, one line in a table, and two spots in the config. The switch doesn't grow. No wiri

Read Full Tutorial open_in_new
arrow_back Back to Tutorials