⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pod::checker.3

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 3
📖 第 1 页 / 共 2 页
字号:
\&\f(CW\*(C`B<>\*(C'\fR, \f(CW\*(C`C<>\*(C'\fR, \f(CW\*(C`E<>\*(C'\fR, \f(CW\*(C`F<>\*(C'\fR, \&\f(CW\*(C`I<>\*(C'\fR, \f(CW\*(C`L<>\*(C'\fR, \f(CW\*(C`S<>\*(C'\fR, \f(CW\*(C`X<>\*(C'\fR, \&\f(CW\*(C`Z<>\*(C'\fR.IP "\(bu" 4nested commands \fI\s-1CMD\s0\fR<...\fI\s-1CMD\s0\fR<...>...>.SpTwo nested identical markup commands have been found. Generally thisdoes not make sense..IP "\(bu" 4garbled entity \fI\s-1STRING\s0\fR.SpThe \fI\s-1STRING\s0\fR found cannot be interpreted as a character entity..IP "\(bu" 4Entity number out of range.SpAn entity specified by number (dec, hex, oct) is out of range (1\-255)..IP "\(bu" 4malformed link L<>.SpThe link found cannot be parsed because it does not conform to thesyntax described in perlpod..IP "\(bu" 4nonempty Z<>.SpThe \f(CW\*(C`Z<>\*(C'\fR sequence is supposed to be empty..IP "\(bu" 4empty X<>.SpThe index entry specified contains nothing but whitespace..IP "\(bu" 4Spurious text after =pod / =cut.SpThe commands \f(CW\*(C`=pod\*(C'\fR and \f(CW\*(C`=cut\*(C'\fR do not take any arguments..IP "\(bu" 4Spurious character(s) after =back.SpThe \f(CW\*(C`=back\*(C'\fR command does not take any arguments..Sh "Warnings".IX Subsection "Warnings"These may not necessarily cause trouble, but indicate mediocre style..IP "\(bu" 4multiple occurrence of link target \fIname\fR.SpThe \s-1POD\s0 file has some \f(CW\*(C`=item\*(C'\fR and/or \f(CW\*(C`=head\*(C'\fR commands that havethe same text. Potential hyperlinks to such a text cannot be unique then.This warning is printed only with warning level greater than one..IP "\(bu" 4line containing nothing but whitespace in paragraph.SpThere is some whitespace on a seemingly empty line. \s-1POD\s0 is very sensitiveto such things, so this is flagged. \fBvi\fR users switch on the \fBlist\fRoption to avoid this problem..IP "\(bu" 4previous =item has no contents.SpThere is a list \f(CW\*(C`=item\*(C'\fR right above the flagged line that has notext contents. You probably want to delete empty items..IP "\(bu" 4preceding non-item paragraph(s).SpA list introduced by \f(CW\*(C`=over\*(C'\fR starts with a text or verbatim paragraph,but continues with \f(CW\*(C`=item\*(C'\fRs. Move the non-item paragraph out of the\&\f(CW\*(C`=over\*(C'\fR/\f(CW\*(C`=back\*(C'\fR block..IP "\(bu" 4=item type mismatch (\fIone\fR vs. \fItwo\fR).SpA list started with e.g. a bullet-like \f(CW\*(C`=item\*(C'\fR and continued with anumbered one. This is obviously inconsistent. For most translators thetype of the \fIfirst\fR \f(CW\*(C`=item\*(C'\fR determines the type of the list..IP "\(bu" 4\&\fIN\fR unescaped \f(CW\*(C`<>\*(C'\fR in paragraph.SpAngle brackets not written as \f(CW\*(C`<lt>\*(C'\fR and \f(CW\*(C`<gt>\*(C'\fRcan potentially cause errors as they could be misinterpreted asmarkup commands. This is only printed when the \-warnings level isgreater than 1..IP "\(bu" 4Unknown entity.SpA character entity was found that does not belong to the standard\&\s-1ISO\s0 set or the \s-1POD\s0 specials \f(CW\*(C`verbar\*(C'\fR and \f(CW\*(C`sol\*(C'\fR..IP "\(bu" 4No items in =over.SpThe list opened with \f(CW\*(C`=over\*(C'\fR does not contain any items..IP "\(bu" 4No argument for =item.Sp\&\f(CW\*(C`=item\*(C'\fR without any parameters is deprecated. It should either be followedby \f(CW\*(C`*\*(C'\fR to indicate an unordered list, by a number (optionally followedby a dot) to indicate an ordered (numbered) list or simple text for adefinition list..IP "\(bu" 4empty section in previous paragraph.SpThe previous section (introduced by a \f(CW\*(C`=head\*(C'\fR command) does not containany text. This usually indicates that something is missing. Note: A \&\f(CW\*(C`=head1\*(C'\fR followed immediately by \f(CW\*(C`=head2\*(C'\fR does not trigger this warning..IP "\(bu" 4Verbatim paragraph in \s-1NAME\s0 section.SpThe \s-1NAME\s0 section (\f(CW\*(C`=head1 NAME\*(C'\fR) should consist of a single paragraphwith the script/module name, followed by a dash `\-' and a very shortdescription of what the thing is good for..IP "\(bu" 4=head\fIn\fR without preceding higher level.SpFor example if there is a \f(CW\*(C`=head2\*(C'\fR in the \s-1POD\s0 file prior to a\&\f(CW\*(C`=head1\*(C'\fR..Sh "Hyperlinks".IX Subsection "Hyperlinks"There are some warnings with respect to malformed hyperlinks:.IP "\(bu" 4ignoring leading/trailing whitespace in link.SpThere is whitespace at the beginning or the end of the contents of L<...>..IP "\(bu" 4(section) in '$page' deprecated.SpThere is a section detected in the page name of L<...>, e.g.\&\f(CW\*(C`L<passwd(2)>\*(C'\fR. \s-1POD\s0 hyperlinks may point to \s-1POD\s0 documents only.Please write \f(CW\*(C`C<passwd(2)>\*(C'\fR instead. Some formatters are ableto expand this to appropriate code. For links to (builtin) functions,please say \f(CW\*(C`L<perlfunc/mkdir>\*(C'\fR, without ()..IP "\(bu" 4alternative text/node '%s' contains non-escaped | or /.SpThe characters \f(CW\*(C`|\*(C'\fR and \f(CW\*(C`/\*(C'\fR are special in the L<...> context.Although the hyperlink parser does its best to determine which \*(L"/\*(R" istext and which is a delimiter in case of doubt, one ought to escapethese literal characters like this:.Sp.Vb 2\&  /     E<sol>\&  |     E<verbar>.Ve.SH "RETURN VALUE".IX Header "RETURN VALUE"\&\fBpodchecker\fR returns the number of \s-1POD\s0 syntax errors found or \-1 ifthere were no \s-1POD\s0 commands at all found in the file..SH "EXAMPLES".IX Header "EXAMPLES"See \*(L"\s-1SYNOPSIS\s0\*(R".SH "INTERFACE".IX Header "INTERFACE"While checking, this module collects document properties, e.g. the nodesfor hyperlinks (\f(CW\*(C`=headX\*(C'\fR, \f(CW\*(C`=item\*(C'\fR) and index entries (\f(CW\*(C`X<>\*(C'\fR).\&\s-1POD\s0 translators can use this feature to syntax-check and get the nodes ina first pass before actually starting to convert. This is expensive in termsof execution time, but allows for very robust conversions..PPSince PodParser\-1.24 the \fBPod::Checker\fR module uses only the \fBpoderror\fRmethod to print errors and warnings. The summary output (e.g. \&\*(L"Pod syntax \s-1OK\s0\*(R") has been dropped from the module and has been included in\&\fBpodchecker\fR (the script). This allows users of \fBPod::Checker\fR tocontrol completely the output behavior. Users of \fBpodchecker\fR (the script)get the well-known behavior..ie n .IP """Pod::Checker\->new( %options )""" 4.el .IP "\f(CWPod::Checker\->new( %options )\fR" 4.IX Item "Pod::Checker->new( %options )"Return a reference to a new Pod::Checker object that inherits fromPod::Parser and is used for calling the required methods later. Thefollowing options are recognized:.Sp\&\f(CW\*(C`\-warnings => num\*(C'\fR  Print warnings if \f(CW\*(C`num\*(C'\fR is true. The higher the value of \f(CW\*(C`num\*(C'\fR,the more warnings are printed. Currently there are only levels 1 and 2..Sp\&\f(CW\*(C`\-quiet => num\*(C'\fR  If \f(CW\*(C`num\*(C'\fR is true, do not print any errors/warnings. This is usefulwhen Pod::Checker is used to munge \s-1POD\s0 code into plain text from within\&\s-1POD\s0 formatters..ie n .IP """$checker\->poderror( @args )""" 4.el .IP "\f(CW$checker\->poderror( @args )\fR" 4.IX Item "$checker->poderror( @args )".PD 0.ie n .IP """$checker\->poderror( {%opts}, @args )""" 4.el .IP "\f(CW$checker\->poderror( {%opts}, @args )\fR" 4.IX Item "$checker->poderror( {%opts}, @args )".PDInternal method for printing errors and warnings. If no options aregiven, simply prints \*(L"@_\*(R". The following options are recognized and usedto form the output:.Sp.Vb 1\&  \-msg.Ve.SpA message to print prior to \f(CW@args\fR..Sp.Vb 1\&  \-line.Ve.SpThe line number the error occurred in..Sp.Vb 1\&  \-file.Ve.SpThe file (name) the error occurred in..Sp.Vb 1\&  \-severity.Ve.SpThe error level, should be '\s-1WARNING\s0' or '\s-1ERROR\s0'..ie n .IP """$checker\->num_errors()""" 4.el .IP "\f(CW$checker\->num_errors()\fR" 4.IX Item "$checker->num_errors()"Set (if argument specified) and retrieve the number of errors found..ie n .IP """$checker\->num_warnings()""" 4.el .IP "\f(CW$checker\->num_warnings()\fR" 4.IX Item "$checker->num_warnings()"Set (if argument specified) and retrieve the number of warnings found..ie n .IP """$checker\->name()""" 4.el .IP "\f(CW$checker\->name()\fR" 4.IX Item "$checker->name()"Set (if argument specified) and retrieve the canonical name of \s-1POD\s0 asfound in the \f(CW\*(C`=head1 NAME\*(C'\fR section..ie n .IP """$checker\->node()""" 4.el .IP "\f(CW$checker\->node()\fR" 4.IX Item "$checker->node()"Add (if argument specified) and retrieve the nodes (as defined by \f(CW\*(C`=headX\*(C'\fRand \f(CW\*(C`=item\*(C'\fR) of the current \s-1POD\s0. The nodes are returned in the order oftheir occurrence. They consist of plain text, each piece of whitespace iscollapsed to a single blank..ie n .IP """$checker\->idx()""" 4.el .IP "\f(CW$checker\->idx()\fR" 4.IX Item "$checker->idx()"Add (if argument specified) and retrieve the index entries (as defined by\&\f(CW\*(C`X<>\*(C'\fR) of the current \s-1POD\s0. They consist of plain text, each pieceof whitespace is collapsed to a single blank..ie n .IP """$checker\->hyperlink()""" 4.el .IP "\f(CW$checker\->hyperlink()\fR" 4.IX Item "$checker->hyperlink()"Add (if argument specified) and retrieve the hyperlinks (as defined by\&\f(CW\*(C`L<>\*(C'\fR) of the current \s-1POD\s0. They consist of a 2\-item array: linenumber and \f(CW\*(C`Pod::Hyperlink\*(C'\fR object..SH "AUTHOR".IX Header "AUTHOR"Please report bugs using <http://rt.cpan.org>..PPBrad Appleton <bradapp@enteract.com> (initial version),Marek Rouchal <marekr@cpan.org>.PPBased on code for \fB\f(BIPod::Text::pod2text()\fB\fR written byTom Christiansen <tchrist@mox.perl.com>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -