2 ms·
Why would you allow manual changes to autogenerated code? Isn't the whole point not to manually change it? Autogenerated code is not a pain to maintain and cha
by mytailorisrich 3y ago
Why would you allow manual changes to autogenerated code? Isn't the whole point not to manually change it?
Autogenerated code is not a pain to maintain and change as long as you have a sensible process...
- tasuki 3y agoHow do you prevent people from manually changing any code which is checked in? Have a CI step run the auto-generation and fail if there's a diff?
- nedbat 3y agoCog can add a checksum to the generated output: https://cog.readthedocs.io/en/latest/running.html#checksummed-output https://cog.readthedocs.io/en/latest/running.html#checksumme...
- mytailorisrich 3y agoCI step, code review. Ideally those steps gate submission to master repo. But even just a big telling-off and revert after the fact (as said those files should have a big warning as header so there is no excuse) if those good practices are not followed as commits should at the very least be monitored manually, and they are obviously visible, anyway.