Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can use the "cog --check" command in CI to prevent this from happening.

On every commit, your tests can rerun the code generator and confirm that it makes no changes to the code. If it does, the tests fail.

That way if anyone manually edits generated code (which they should not be doing) it will be caught by CI.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: