Bug#1025143: licensecheck: file type: lua is missing

Jérémy Lal kapouer at melix.org
Wed Nov 30 12:29:18 GMT 2022


Le mer. 30 nov. 2022 à 12:47, Jonas Smedegaard <jonas at jones.dk> a écrit :

> Quoting Jérémy Lal (2022-11-30 12:27:34)
> > Le mer. 30 nov. 2022 à 12:21, Jonas Smedegaard <jonas at jones.dk> a écrit
> :
> > > Quoting Jérémy Lal (2022-11-30 10:06:07)
> > > > it seems that licensecheck doesn't know .lua is an extension for the
> Lua
> > > Programming Language.
> > >
> > > Sorry, I don't understand what is the issue reported.
> > >
> > > Do licensecheck fail is some specific situation, or do you expect it to
> > > have certain use of knowing about lua as a language?
> > >
> > > Perhaps if you provide a concrete example case it helps me
> understand...
> > >
> >
> > The default check regex does not include files with a *.lua extension.
>
> Ahh.  Thanks.
>
> Yes, by default licensecheck scans only a somewhat arbitrary subset of
> files based on their file extension.  I find that fundamentally flawed
> (i.e. not fixable by changing the set of extensions) and I expected a
> future release of licensecheck to move away from extension-based
> selection (either by default or altogether).
>
> If you see some particular need for current extension-based selection
> (just extended to include .lua) then please do share - perhaps I am
> simply lacking in imagination.
>

Yes, as I'm involved more and more with some packages having lua files,
and being a (new) user of "cme update dpkg-copyright", I would find it
awesome
if licensecheck had those lua files in the default set of extensions.

The default set looks indeed somewhat arbitrary, indeed.
Maybe licensecheck could expect other languages to setup their own config
somewhere in
/etc/licensecheck/conf.d/lua.conf
but that would be a huge change, and I'm not sure it's worth it.

Exemple of a lua file containing a copyright:
https://salsa.debian.org/nginx-team/libnginx-mod-http-lua/-/blob/master/t/lib/Redis.lua

Jérémy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20221130/a152d61f/attachment.htm>


More information about the pkg-perl-maintainers mailing list