Keeping documentation in sync with source code
cerbos.dev
cerbos.dev
This would stop working if bonuses or compensation were tied to the score. The moment that happens, people will start writing hooks to update it with a space every commit, then it will be ignored by devs.
Documentation needs to be written as automated tests as far as humanly possible. I've worked towards this goal on iommi and it's been eye opening. Every time I run more code examples from the docs in the test suite I've found bugs.
One would hope that the pull request/merge request review process would catch this. Ultimately the humans are the weak link in all of this but if the tooling could point out that DocumentationForThisFeature.md has a comment pointing to the class you just updated and you didn't assert one way or the other that the docs are still valid (not sure of the syntax of this... update the date on the class of an attribute like featureDocsLastUpdatedOrVerified="2020-02-04T14:51Z"?) could at least raise the "Oh yeah -- I forgot to update that!" awareness. You could even take it as far as making such an indication a reason to fail a CI/CD pipeline if documentation matters that much.
The the underlying code was changed, introducing more bugs.
(I am the author btw)
why yaml? I hate it so much! my eyes hurt looking at it?
why not using https://hjson.github.io/ ?
However, since I did try to start this project once, on a fairly small 1-million line firmware code set written in C, let me be the first to tell you that it is no small feat. Even producing a tool that could analyze code and then output what the valid inputs are to any given function would be a phenomenal achievement.