Re: [Openvpn-devel] [PATCH] Add git pre-commit hook script to uncrustify

2022-04-21 Thread Gert Doering
Hi, On Thu, Apr 21, 2022 at 02:41:18PM +0200, Heiko Hund wrote: > > Especially this one is something I only noticed after I sent my mail - > > so this definitely needs to to mktemp-style temp files, or a private > > tmp directory (in the local repo?) > > I don't really see the need for secure tmp

Re: [Openvpn-devel] [PATCH] Add git pre-commit hook script to uncrustify

2022-04-21 Thread Heiko Hund
Hi Frank On Donnerstag, 21. April 2022 10:01:29 CEST Frank Lichtenheld wrote: > > +# If called so, install this script as pre-commit hook > > +if [ "$1" = "install" ] ; then > > +ROOTDIR=$(git rev-parse --show-toplevel) > > +HOOKSDIR="$ROOTDIR/.git/hooks" > > Actually, the correct way to

Re: [Openvpn-devel] [PATCH] Add git pre-commit hook script to uncrustify

2022-04-21 Thread Heiko Hund
Hi David On Donnerstag, 21. April 2022 13:41:58 CEST David Schneider wrote: > Did you consider to use the pre-commit framework [1] written in > Python? There is a maintained hook for uncrustify [2]. > This would allow it to easily integrate other linters/checks. See the > list of supported hooks [

Re: [Openvpn-devel] [PATCH] Add git pre-commit hook script to uncrustify

2022-04-21 Thread Heiko Hund
Hi On Donnerstag, 21. April 2022 10:16:03 CEST Gert Doering wrote: > On Thu, Apr 21, 2022 at 10:01:29AM +0200, Frank Lichtenheld wrote: > > Definitive NACK due to licensing concern mentioned below. > > Streams crossed here, but I saw your NAK before pushing. > So, yes, all valid concerns and I wi

Re: [Openvpn-devel] [PATCH] Add git pre-commit hook script to uncrustify

2022-04-21 Thread David Schneider
Hi all, Did you consider to use the pre-commit framework [1] written in Python? There is a maintained hook for uncrustify [2]. This would allow it to easily integrate other linters/checks. See the list of supported hooks [3]. I would understand if you don't like to add yet another dependency, but

Re: [Openvpn-devel] [PATCH] Add git pre-commit hook script to uncrustify

2022-04-21 Thread Gert Doering
Hi, On Thu, Apr 21, 2022 at 10:01:29AM +0200, Frank Lichtenheld wrote: > Definitive NACK due to licensing concern mentioned below. Streams crossed here, but I saw your NAK before pushing. So, yes, all valid concerns and I withdraw my ACK. > [...] > > +# create a filename to store our generated

Re: [Openvpn-devel] [PATCH] Add git pre-commit hook script to uncrustify

2022-04-21 Thread Frank Lichtenheld
Definitive NACK due to licensing concern mentioned below. > Heiko Hund hat am 21.04.2022 01:31 geschrieben: > > > The script is self installing if you call it with "install" as the first > parameter. Once installed as the pre-commit hook it will check files to > be committed according to the r

[Openvpn-devel] [PATCH] Add git pre-commit hook script to uncrustify

2022-04-20 Thread Heiko Hund
The script is self installing if you call it with "install" as the first parameter. Once installed as the pre-commit hook it will check files to be committed according to the rules in uncrustify.conf and abort the commit if there's formatting issues. The script produces a patch in /tmp which can be