3 ms·
How could such a linter rule be enforced with python? does such a linter rule exist here, too?
by blumomo 4y ago
How could such a linter rule be enforced with python? does such a linter rule exist here, too?
- wutbrodo 4y agoThis 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.
- mattnewton 4y agoMy 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