All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: qemu-devel@nongnu.org,  arei.gonglei@huawei.com,
	 eblake@redhat.com, eduardo@habkost.net,  fan.ni@samsung.com,
	 farosas@suse.de, hreitz@redhat.com,  jasowang@redhat.com,
	 jiri@resnulli.us, jonathan.cameron@huawei.com,
	 kkostiuk@redhat.com,  kraxel@redhat.com, kwolf@redhat.com,
	 lukasstraub2@web.de,  marcandre.lureau@redhat.com,
	marcel.apfelbaum@gmail.com,  michael.roth@amd.com,
	 mst@redhat.com, pbonzini@redhat.com,  peter.maydell@linaro.org,
	 peterx@redhat.com, philmd@linaro.org,  pizhenwei@bytedance.com,
	 qemu-block@nongnu.org, stefanb@linux.ibm.com,
	 wangyanan55@huawei.com
Subject: Re: [PATCH 06/15] qapi: Require member documentation (with loophole)
Date: Mon, 12 Feb 2024 10:10:42 +0100	[thread overview]
Message-ID: <87jznadp4d.fsf@pond.sub.org> (raw)
In-Reply-To: <ZcM_54CNKzemVb4-@redhat.com> ("Daniel P. Berrangé"'s message of "Wed, 7 Feb 2024 08:31:35 +0000")

Daniel P. Berrangé <berrange@redhat.com> writes:

> On Mon, Feb 05, 2024 at 08:47:00AM +0100, Markus Armbruster wrote:
>> The QAPI generator forces you to document your stuff.  Except for
>> command arguments, event data, and members of enum and object types:
>> these the generator silently "documents" as "Not documented".
>> 
>> We can't require proper documentation there without first fixing all
>> the offenders.  We've always had too many offenders to pull that off.
>> Right now, we have more than 500.  Worse, we seem to fix old ones no
>> faster than we add new ones: in the past year, we fixed 22 ones, but
>> added 26 new ones.
>> 
>> To help arrest the backsliding, make missing documentation an error
>> unless the command, type, or event is in listed in new pragma
>> documentation-exceptions.
>
> If we want to really annoy people we could print a warning to
> stderr during docs generation, for each undocumented field.
> The many pages  of warnings would likely trigger a much quicker
> series to patches to fix it to eliminate the annoying warnings :-)

Heh.

Let's give not annoying people that much a try.  Can always escalate
later :)

[...]



  reply	other threads:[~2024-02-12  9:11 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-05  7:46 [PATCH 00/15] qapi: Require member documentation (with loophole) Markus Armbruster
2024-02-05  7:46 ` [PATCH 01/15] docs/devel/qapi-code-gen: Normalize version refs x.y.0 to just x.y Markus Armbruster
2024-02-07  8:15   ` Daniel P. Berrangé
2024-02-05  7:46 ` [PATCH 02/15] docs/devel/qapi-code-gen: Tweak doc comment whitespace Markus Armbruster
2024-02-07  8:18   ` Daniel P. Berrangé
2024-02-05  7:46 ` [PATCH 03/15] qapi/block-core: Fix BlockLatencyHistogramInfo doc markup Markus Armbruster
2024-02-07  8:18   ` Daniel P. Berrangé
2024-02-05  7:46 ` [PATCH 04/15] qapi: Indent tagged doc comment sections properly Markus Armbruster
2024-02-07  8:19   ` Daniel P. Berrangé
2024-02-05  7:46 ` [PATCH 05/15] sphinx/qapidoc: Drop code to generate doc for simple union tag Markus Armbruster
2024-02-07  8:20   ` Daniel P. Berrangé
2024-02-05  7:47 ` [PATCH 06/15] qapi: Require member documentation (with loophole) Markus Armbruster
2024-02-07  8:31   ` Daniel P. Berrangé
2024-02-12  9:10     ` Markus Armbruster [this message]
2024-02-05  7:47 ` [PATCH 07/15] qga/qapi-schema: Clean up documentation of guest-set-memory-blocks Markus Armbruster
2024-02-07  8:32   ` Daniel P. Berrangé
2024-02-20  8:37   ` Konstantin Kostiuk
2024-02-05  7:47 ` [PATCH 08/15] qga/qapi-schema: Clean up documentation of guest-set-vcpus Markus Armbruster
2024-02-07  8:32   ` Daniel P. Berrangé
2024-02-20  8:57   ` Konstantin Kostiuk
2024-02-05  7:47 ` [PATCH 09/15] qga/qapi-schema: Plug trivial documentation holes Markus Armbruster
2024-02-07  8:34   ` Daniel P. Berrangé
2024-02-08  6:49     ` Markus Armbruster
2024-02-05  7:47 ` [PATCH 10/15] qapi/yank: Clean up documentaion of yank Markus Armbruster
2024-02-07  8:35   ` Daniel P. Berrangé
2024-02-05  7:47 ` [PATCH 11/15] qapi/dump: Clean up documentation of DumpGuestMemoryCapability Markus Armbruster
2024-02-07  8:35   ` Daniel P. Berrangé
2024-02-05  7:47 ` [PATCH 12/15] qapi: Plug trivial documentation holes around former simple unions Markus Armbruster
2024-02-07  8:36   ` Daniel P. Berrangé
2024-02-05  7:47 ` [PATCH 13/15] qapi: Improve documentation of file descriptor socket addresses Markus Armbruster
2024-02-07  8:40   ` Daniel P. Berrangé
2024-02-05  7:47 ` [PATCH 14/15] qapi: Move @String out of common.json to discourage reuse Markus Armbruster
2024-02-07  8:41   ` Daniel P. Berrangé
2024-02-05  7:47 ` [PATCH 15/15] qapi: Add missing union tag documentation Markus Armbruster
2024-02-07  8:42   ` Daniel P. Berrangé
2024-02-07  3:20 ` [PATCH 00/15] qapi: Require member documentation (with loophole) Peter Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87jznadp4d.fsf@pond.sub.org \
    --to=armbru@redhat.com \
    --cc=arei.gonglei@huawei.com \
    --cc=berrange@redhat.com \
    --cc=eblake@redhat.com \
    --cc=eduardo@habkost.net \
    --cc=fan.ni@samsung.com \
    --cc=farosas@suse.de \
    --cc=hreitz@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=jiri@resnulli.us \
    --cc=jonathan.cameron@huawei.com \
    --cc=kkostiuk@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=lukasstraub2@web.de \
    --cc=marcandre.lureau@redhat.com \
    --cc=marcel.apfelbaum@gmail.com \
    --cc=michael.roth@amd.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=peterx@redhat.com \
    --cc=philmd@linaro.org \
    --cc=pizhenwei@bytedance.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanb@linux.ibm.com \
    --cc=wangyanan55@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.