- Package:
- licensecheck
- Source:
- licensecheck
- Submitter:
- Jérémy Lal
- Date:
- 2025-04-08 11:18:02 UTC
- Severity:
- wishlist
Hi, it seems that licensecheck doesn't know .lua is an extension for the Lua Programming Language. Jérémy
Hi Jérémy, Quoting Jérémy Lal (2022-11-30 10:06:07) 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... - Jonas
Le mer. 30 nov. 2022 à 12:21, Jonas Smedegaard <jonas@jones.dk> a écrit : The default check regex does not include files with a *.lua extension. Jérémy
Quoting Jérémy Lal (2022-11-30 12:27:34) 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. - Jonas
Le mer. 30 nov. 2022 à 12:47, Jonas Smedegaard <jonas@jones.dk> a écrit : 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
Quoting Jérémy Lal (2022-11-30 13:29:18) statements contained in .lua files, however, but cases of it being sensible to continue to have a default extension-based skiplist. Sorry - I see now that my point was vague previously. Licensecheck does not distinguish between code languages: It scans plaintext content for human-language license- and copyright-statements. What is broken about the default extention-based skiplist is not that it misses .lua files, but that it misses *ALL* files with a not-assumed-relevant content. Adding .lua extension to default list will only fool users working with lua code, same as it is already fooling users working with C and perl and python code now: When licensecheck reports that it found no copyright or licensing, you get fooled into thinking that there are no licensing when really the message should have included a warning that not all files were examined at all. For those using licensecheck directly, I recommend to override the default to scan everything, and then explicitly exclude unwanted files (either because licensecheck chokes on them containing non-text content, or because they are huge and known to not contain relevant data - e.g. extremely large JSON or dictionary files). But as you mention that you use licensecheck directly only indirectly through cme, I can just suggest that you discuss with the author of cme what is sensible for that tool: I have already implemented other user-targeted warnings for uncertainties requiring action, which cme deliberately strip, so we disagree about what users should be bothered to care about in a copyright- and licensing scanner and you might be in agreement with the cme author about simply including .lua files and then living in bliss. - Jonas
Good morning, Attached please find your PDF account statement and invoice as of 05/11/2023. Please notice you have a past due balance for invoice IN0099203. Please provide payment as soon as possible. Best Regards, Shawneen Chisholm Accounts Receivable Coordinator UNITED RENTALS, INC. Branch L02 BONNYVILLE 4920 56TH AVE BONNYVILLE AB T9N 2N8 CA 780-826-7610 CONFIDENTIALITY NOTICE: The contents of this email message and any attachments are intended solely for the addressee(s). This may contain confidential and/or privileged information and may be legally protected from disclosure. If you are not the intended recipient of this message, please alert the sender immediately by reply email and then delete this message and any attachments. Any disclosure, reproduction, distribution or other use of this message or any attachments by an individual or entity other than the intended recipient is prohibited