Skip to content

Add a default Lefthook configuration

What does this MR do?

This adds a configuration file for Lefthook which is more flexible and powerful than Overcommit.

The only downside is that if gather the diff between origin/master and HEAD so if you didn't fetch origin/master for a long time, the checks might be done on more files than the one that you updated.

Also, that means you need a origin remote.

Screenshots

Successful push

Screen_Shot_2020-07-09_at_14.25.24

Failed push

Screen_Shot_2020-08-31_at_18.46.43

Closes #220807 (closed).

Edited by Rémy Coutable

Merge request reports