Hacker News new | ask | show | jobs
by kqr 1590 days ago
I can see one useful case for this type of software: you want to apply a lint rule that says "all functions must have docstrings".

With this tool, you can programmatically add a dumb docstring to everything to make the linter shut up about old code, and still have it complain about new code.

Of course, some sort of ratcheting in your build pipeline would be better.

2 comments

Linter shutting up should be handled at linter level, not by mechanical additions to code.
So, you want to put spam into code comments? Why not to put affiliate links then.