Dne 7.6.2016 v 10:26 Ladislav Slezak napsal(a):
Hi,
I found a quite interesting tool called Overcommit [1].
[...]
The tool looks promising, I'll try using it for some time. If you want to try it as well check the blog post for the installation steps.--
To make the usage in YaST easier I have created a simple script [1] which recursively scans a directory and installs the overcommit hooks in each Git repository found. So you can easily install the hooks in all YaST repositories using e.g. wget https://raw.githubusercontent.com/lslezak/scripts/master/git/install_overcom... ruby install_overcommit.rb ~/git/yast (adapt the path to your YaST Git checkout) The script detects some repository properties automatically, e.g. if ".rubocop.yml" is found then the Rubocop check is enabled otherwise it is disabled. Enjoy! -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org