lightning
lightning copied to clipboard
Add pre-commit hook to auto-fix style issues
Each commit should be atomic and pass make check-source, but currently developers must manually fix style issues before committing. Adding a precommit hook would mean that these style issues would be fixed, so each commit would pass make check source
Have you seen https://github.com/ElementsProject/lightning/pull/8193? It demos reimplementions of some of the check-source functionality, along with other experimental checks.
I've been thinking about closing it for some time due to lack of interest, but could consider revising it given more specific requirements or feedback.