qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC PATCH 47/47] script to find outdated entry in MAIN


From: Eric Blake
Subject: Re: [Qemu-devel] [RFC PATCH 47/47] script to find outdated entry in MAINTAINERS
Date: Fri, 28 Jul 2017 14:44:56 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

On 07/28/2017 11:26 AM, Markus Armbruster wrote:
> Philippe Mathieu-Daudé <address@hidden> writes:
> 
>> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
>> ---

>> +# This script checks MAINTAINERS consistency
> 
> Consistency?  I think you mean coverage.

Indeed - consistency implies even more, such as all email addresses and
git trees are still valid.  Coverage is merely that all files at least
have one listed owner, whether or not that owner is still correct.

> But what I really want is checkpatch whining when it happens.  Thomas
> posted a patch some time ago.  Would you be willing to revive it?
> 
> https://lists.gnu.org/archive/html/qemu-devel/2017-01/msg05742.html
> Message-Id: <address@hidden>
> 
> Basically:
> 
> * Patch deletes a file
> 
>   - still in MAINTAINERS after the patch: warn
>   - else: ok
> 

Careful, since we have globs in MAINTAINERS.  I guess it really means:

* Patch deletes a file:
   - check all lines in MAINTAINERS; if any no longer maps to a file: warn
   - else: ok

> * Patch creates a file
> 
>   - not in in MAINTAINERS after the patch: warn
>   - else: ok
> 
> * Patch moves a file

Same as delete + move, even if it shows up in git differently.

> 
> May have to ignore "uninteresting" files to reduce the noise.  But even
> ignoring everything but *.[ch] would be an improvement!

And like all checkpatch warnings, maintainers (or, in this case, lack of
maintainer?) can ignore the warning and submit pull request anyway.  But
the key part is that by making it part of checkpatch, coupled with
patchew CI, the whole list would know who's ignoring the warnings :)

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]