Hacker News new | ask | show | jobs
by joshuaavalon 1883 days ago
If you want central authority, isn't it the job of CI?

Use CI to verify the commits fits the styles and review the commits before merging.

2 comments

CI can punish but it can't solve the problem.
What works really well for me is using the pre-commit framework (https://pre-commit.com/). This offers an easy way for everybody to run defined hooks locally before committing or pushing changes. That allows people to solve problems before pushing code, but if they don't, they'll get punished by CI, as the same hooks run there as well.
> If you want central authority, isn't it the job of CI?

You can't fault a tool for not providing a centralized authority when it's very central design principle is being decentralized.