Closed bmr-cymru closed 10 years ago
This also means dropping sub-class docstrings - this is fine as we've had the code for some time to go fetch the superclass docstring in the case that a leaf class does not define it.
Fixed in commit 9bfe802:
commit 9bfe802436f5707b38bfbcf83795ee0629939542
Author: Bryn M. Reeves <bmr@redhat.com>
Date: Sun Sep 14 20:05:55 2014 +0100
[plugins] improve plugin class docstrings
Plugin class docstrings should be a brief (42 characters or less)
description of the component the plugin supports. This is needed
since the class docstring is displayed in the table of enabled
plugins when running 'sosreport --list-plugins'.
Class docstrings should not describe the distribution a particular
class runs on; this is redundant since only plugins tagges with a
class matching the running policy will be displayed.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Lots of plugins have c'n'p duplicated class docstrings that embed a 'for Red Hat distributions..' or similar string. These are duplicative, unnecessary and look a real mess in plugin listings, e.g.:
At the very least I think we can expect our users to know what distro they are running on (we print its name in the banner message! :-). I suggest we drop all of this crap and start aiming for a maximum of 42 chars in the Plugin docstring - this is what we need to stick to to not have any extra line breaks on a standard 80x25 terminal.
It looks much nicer: