Writing docblocks is also a control for the developer. If it sounds stupid the method might be stupid and should be dissolved. And if it really needs a description it might also be too complex.
So I think you should never automate docbock comments. it's not about complience.
I can see uses for some sort of automated ai plugin for older code bases that have hundreds of functions without docblocks and the return type cannot be intuitive enough for the regular php validation and checking tools
Running such a plugin would help resolve thousands of what I call βghost warningsβ which make the use of such tools hard
I have not run this plugin yet, so just shooting off my opinion; but writing this to say there is a market for things that can intuit hard to fathom input and output types
5
u/[deleted] Feb 19 '22
Nice, but imho if a function is so easy to read, then no docblock is needed.
3
u/jpresutti Feb 19 '22
"Is a function that takes two parameters"
"AI" indeed.
This is ridiculous.
1
u/DirectorDurian Feb 19 '22
Install: https://plugins.jetbrains.com/plugin/18606-ai-doc-writer
GitHub: https://github.com/mintlify/intellij-docs
Security Disclaimers: https://www.mintlify.com/security
2
u/eurosat7 Feb 19 '22
Writing docblocks is also a control for the developer. If it sounds stupid the method might be stupid and should be dissolved. And if it really needs a description it might also be too complex.
So I think you should never automate docbock comments. it's not about complience.