Hacker News new | ask | show | jobs
by blumomo 1489 days ago
How could such a linter rule be enforced with python? does such a linter rule exist here, too?
1 comments

This technique is pretty trivial, and thus very generalizable.

When I was at Google as a new grad, I used to put comments with the wrong number of slashes for my internal todos, which would cause the regular linter to pick it up before review. You can piggyback on any such linter rule very easily.

My usual was DO NOT SUBMIT which would show up in all red in the editors and code review tools after the woodly-doodly incident (someone changed WD to woodly doodly to test they were seeing their code and accidentally shipped it). It’s easy to teach your tools about a magic phrase like this