3 ms·
Tools not rules! Use hooks to check quality automatically on your repos and/or CI server. Change the environment so a developer can't push code unless linting
by onion2k 9y ago
Tools not rules!
Use hooks to check quality automatically on your repos and/or CI server. Change the environment so a developer can't push code unless linting and tests pass. If you configure the remote to use receive.denyNonFastForwards they won't even be able to use --force. Then add linting rules so you have to comment things (eg https://eslint.org/docs/rules/valid-jsdoc https://eslint.org/docs/rules/valid-jsdoc). It won't enforce quality, but that comes later once people habitually know to write comments.
Expect a lot of resistance to this sort of solution though.
- hotz 9y agoI've tried that. I was seen as having a stick up my a*. I've given up on enforcing it on that level.