[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Autotools lint tool
From: |
David A. Wheeler |
Subject: |
Re: Autotools lint tool |
Date: |
Wed, 23 Oct 2019 12:18:10 -0400 (EDT) |
> David A. Wheeler (2019/10/07 12:29 -0400):
> > Here's a list of some style recommendations I made for autotools use:
> > https://dwheeler.com/autotools/#style
> > I think a number of them could be implemented by a linter.
> > You could also warn about a missing AC_INIT and AC_OUTPUT,
> > although I suspect such problems are rare in practice.
On Wed, 23 Oct 2019 16:25:00 +0200, Sébastien Hinderer <address@hidden> wrote:
> And I'm pretty sure autoconf itself either does or could warn about such
> things.
I just did a quick check with "autoreconf -i" in version 2.69.
Sadly it does NOT warn about either AC_INIT or AC_OUTPUT missing.
It also doesn't warn about trailing space in arguments, e.g., it allows this:
AC_INIT([project_name] , [1.0.11] , [my_email] )
So there's a long list of things that an autoconf style checker could detect.
I'd focus on things like missing [...] and trailing space in arguments;
those are easy mistakes to make.
--- David A. Wheeler
- Autotools lint tool, Gabriel Lisaca, 2019/10/02
- Re: Autotools lint tool, Warren Young, 2019/10/02
- Re: Autotools lint tool, Bob Friesenhahn, 2019/10/03
- Re: Autotools lint tool, Richard Ash, 2019/10/06
- Re: Autotools lint tool, Bob Friesenhahn, 2019/10/07
- Re: Autotools lint tool, David A. Wheeler, 2019/10/07
- Re: Autotools lint tool, Sébastien Hinderer, 2019/10/23
- Re: Autotools lint tool,
David A. Wheeler <=
- Re: Autotools lint tool, Sébastien Hinderer, 2019/10/23