Re: Autotools lint tool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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 <Sebastien.Hinderer@xxxxxxxx> 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
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf




[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux