Subject: | POD manual page: Add POSIX compliant checks |
The POSIX standard defines format of the manual pages:
http://www.opengroup.org/onlinepubs/009695399/utilities/
xcu_chap01.html#tag_01_11
The current Perl::Critic does not include Posix convention checks.
SUGGESTION
1) Examine the POSIX standard and require a minimal set of typical
sections to appear in the page. Here is a brief list of suggested ones
(r=required, o=optional):
NAME r, SYNOPSIS r, DESCRIPTION r, OPTIONS r, INPUT FILES o,
ENVIRONMENT VARIABLES r, OUTPUT FILES o, EXIT STATUS o, EXAMPLES r, SEE
ALSO r
* Require that these sections appear in this order presented.
* Complain loudly about any missing required section
* Complain less loudly about optional sections.
* Mark these lint messages with a [POSIX] tag or something.
* Add some option to enable Posix checks: --posix or similar
2) Mark the other POD lint messages with a separate tag, like [PERL],
to differentiate them from the POSIX checks.
Examples:
Missing "USAGE" section in POD at line 1, column 1. See pages 133,138
of PBP. Severity: 2
Missing "REQUIRED ARGUMENTS" section in POD at line 1, column 1. See
pages 133,138 of PBP. Severity: 2
Missing "DIAGNOSTICS" section in POD at line 1, column 1. See pages
133,138 of PBP. Severity: 2
Missing "EXIT STATUS" section in POD at line 1, column 1. See pages
133,138 of PBP. Severity: 2
Missing "CONFIGURATION" section in POD at line 1, column 1. See pages
133,138 of PBP. Severity: 2
Missing "DEPENDENCIES" section in POD at line 1, column 1. See pages
133,138 of PBP. Severity: 2
Missing "INCOMPATIBILITIES" section in POD at line 1, column 1. See
pages 133,138 of PBP. Severity: 2
Missing "BUGS AND LIMITATIONS" section in POD at line 1, column 1. See
pages 133,138 of PBP. Severity: 2
Missing "AUTHOR" section in POD at line 1, column 1. See pages 133,138
of PBP. Severity: 2
Missing "LICENSE AND COPYRIGHT" section in POD at line 1, column 1.
See pages 133,138 of PBP. Severity: 2