<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 30 nov. 2022 à 12:47, Jonas Smedegaard <<a href="mailto:jonas@jones.dk">jonas@jones.dk</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Quoting Jérémy Lal (2022-11-30 12:27:34)<br>
> Le mer. 30 nov. 2022 à 12:21, Jonas Smedegaard <<a href="mailto:jonas@jones.dk" target="_blank">jonas@jones.dk</a>> a écrit :<br>
> > Quoting Jérémy Lal (2022-11-30 10:06:07)<br>
> > > it seems that licensecheck doesn't know .lua is an extension for the Lua<br>
> > Programming Language.<br>
> ><br>
> > Sorry, I don't understand what is the issue reported.<br>
> ><br>
> > Do licensecheck fail is some specific situation, or do you expect it to<br>
> > have certain use of knowing about lua as a language?<br>
> ><br>
> > Perhaps if you provide a concrete example case it helps me understand...<br>
> ><br>
> <br>
> The default check regex does not include files with a *.lua extension.<br>
<br>
Ahh.  Thanks.<br>
<br>
Yes, by default licensecheck scans only a somewhat arbitrary subset of<br>
files based on their file extension.  I find that fundamentally flawed<br>
(i.e. not fixable by changing the set of extensions) and I expected a<br>
future release of licensecheck to move away from extension-based<br>
selection (either by default or altogether).<br>
<br>
If you see some particular need for current extension-based selection<br>
(just extended to include .lua) then please do share - perhaps I am<br>
simply lacking in imagination.<br></blockquote><div><br></div><div>Yes, as I'm involved more and more with some packages having lua files,</div><div>and being a (new) user of "cme update dpkg-copyright", I would find it awesome</div><div>if licensecheck had those lua files in the default set of extensions.</div><div><br></div><div>The default set looks indeed somewhat arbitrary, indeed.</div><div>Maybe licensecheck could expect other languages to setup their own config somewhere in</div><div>/etc/licensecheck/conf.d/lua.conf</div><div>but that would be a huge change, and I'm not sure it's worth it.</div><div><br></div><div>Exemple of a lua file containing a copyright:</div><a href="https://salsa.debian.org/nginx-team/libnginx-mod-http-lua/-/blob/master/t/lib/Redis.lua">https://salsa.debian.org/nginx-team/libnginx-mod-http-lua/-/blob/master/t/lib/Redis.lua</a></div><br>Jérémy</div>