Re: [PATCH v4 2/2] parse-options.c: add style checks for usage-strings
- From
Abhradeep Chakraborty <chakrabortyabhradeep79@gmail.com>
- Date
- Mar 3, 2022, 17:34 UTC
- Message-ID
- <20220303173456.3773-1-chakrabortyabhradeep79@gmail.com>
- In-Reply-To
- <nycvar.QRO.7.76.6.2203012024210.11118@tvgsbejvaqbjf.bet>
Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> And since Abhradeep is a new contributor, I found it important to steer > the direction toward sound advice that they can use over and over again > over the course of their career: whenever possible, prefer static checks > over runtime ones.
Thanks Johannes for the advice. I will always remember it ^^
Show 11 quoted lines
> Of course, if we can convince Coccinelle (together with Python) to give us > the static check, we might very well be able to port more of > `parse_options_check()` from runtime checks to static ones, which would be > a clear win. > > If that is possible, we could save ourselves a lot of time by skipping (2) > altogether. > > And as I said, Julia's advice looked really good. If only I wasn't > desperately short on time, I would have given it a try because it sounds > not only fun but also very, very useful in Git's context.
Since Junio and you both have an interest in Coccinelle, if you allow, I want to look into it.
Thanks :)