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

Bug#993662: lintian: Please warn for source file that have This file was autogenerated or DO NOT EDIT BY HAND



Le dimanche 5 septembre 2021, 06:13:03 UTC Chris Lamb a écrit :
> Bastien wrote:
> > I really prefer to have a tag, ftpmaster is a bottlenet more than
> > maintainer time, so every little bit piece of documentation and help
> > is I think welcome here.
> 
> Oh, don't worry, I completely agree with the principle and understand
> the reasoning. But the sheer number of instances (and the implied
> burden for maintainers to repack tarballs or create Lintian overrides)
> make this difficult to justify in practice.
> 
> I mean, just to take the "DO NOT EDIT BY HAND" string:
> 
>   https://codesearch.debian.net/search?q=DO+NOT+EDIT+BY+HAND&perpkg=1
https://codesearch.debian.net/search?q=DO%5Cs%2BNOT%5Cs%2BEDIT%5Cs%2BBY%5Cs%2BHAND+-path%3A.*gtest*+-path%3A.*gmock.*+-path%3A.*googlemock.*++-path%3A.*googletest.*&literal=0
is perfectly manageable.

We need only to tag pedanticly that the package include google test (that is not really important but it is better to use packaged version).

With some negative regexp we could also treat the case like  (but it is at more ten case not worth the code)
pw.printMsg("// Generated by MC.java version @, DO NOT EDIT BY HAND!", VERSION);

> 
> That's a lot of work you are asking maintainers to do there, and
> pretty much guarantees pushback.

So manageable 
> 
> Regards,
> 
> --
>       ,''`.
> 
>      : :'  :     Chris Lamb
> 
>      `. `'`      lamby@debian.org 🍥 chris-lamb.co.uk
>        `-


Reply to: