| 1 |
.TH RSTCHECK 1 "" "@VERSION@" "Text Processing Tools" |
| 2 |
.SH NAME |
| 3 |
rstcheck \- check syntax of reStructuredText files and nested code blocks |
| 4 |
.SH SYNOPSIS |
| 5 |
.SY rstcheck |
| 6 |
.OP \-\-config FILE |
| 7 |
.OP \-r |
| 8 |
.OP \-\-report LEVEL |
| 9 |
.OP \-\-ignore\-language LANG |
| 10 |
.OP \-\-ignore\-messages MSG |
| 11 |
.OP \-\-ignore\-directives DIR |
| 12 |
.OP \-\-ignore\-substitutions SUB |
| 13 |
.OP \-\-ignore\-roles ROLES |
| 14 |
.I FILE.rst |
| 15 |
.RI [ FILE.rst |
| 16 |
.IR .\|.\|. ] |
| 17 |
.YS |
| 18 |
.SH DESCRIPTION |
| 19 |
.B rstcheck |
| 20 |
validates the syntax of reStructuredText files and can also verify the syntax |
| 21 |
for a number of languages in nested code blocks: |
| 22 |
.IP \(bu |
| 23 |
Bash |
| 24 |
.IP \(bu |
| 25 |
Doctest |
| 26 |
.IP \(bu |
| 27 |
C (C99) |
| 28 |
.IP \(bu |
| 29 |
C++ (C++11) |
| 30 |
.IP \(bu |
| 31 |
JSON |
| 32 |
.IP \(bu |
| 33 |
XML |
| 34 |
.IP \(bu |
| 35 |
Python |
| 36 |
.IP \(bu |
| 37 |
restructuredTest |
| 38 |
.SH OPTIONS |
| 39 |
.TP |
| 40 |
.BR \-\-config " " \fIFILE\fR |
| 41 |
load configuration from |
| 42 |
.IR FILE . |
| 43 |
The configuration is expected in INI file format with a section |
| 44 |
.B [rstcheck] |
| 45 |
and key-value pairs which correspond with command line options. |
| 46 |
.TP |
| 47 |
.BR \-r ", " \-\-recursive |
| 48 |
Treat input file names as directories and recursively check all |
| 49 |
.B .rst |
| 50 |
files within. |
| 51 |
.TP |
| 52 |
.BR \-\-report " " \fILEVEL\fR |
| 53 |
restrict reported severities to |
| 54 |
.I LEVEL |
| 55 |
or higher. |
| 56 |
Valid levels in increasing order of severity are: |
| 57 |
.BR info ", " warning ", " error ", " severe . |
| 58 |
You can also specify |
| 59 |
.B none |
| 60 |
to suppress all output. |
| 61 |
.TP |
| 62 |
.BR \-\-ignore\-language " " \fILANG\fR ", " \-\-ignore " " \fILANG\fR |
| 63 |
Ignore code blocks with one of the languages |
| 64 |
.IR LANG , |
| 65 |
where |
| 66 |
.I LANG |
| 67 |
is a comma-separated list of code block language identifiers. You can also |
| 68 |
disable language checking with a block comment such as |
| 69 |
.IP |
| 70 |
.EX |
| 71 |
\&.. rstcheck: ignore-language=cpp,python,rst |
| 72 |
.EE |
| 73 |
.IP |
| 74 |
near the beginning of the input file. |
| 75 |
.TP |
| 76 |
.BR \-\-ignore\-messages " " (\fIMSG\fB)\fR |
| 77 |
Ignore all messages that match the regular expression |
| 78 |
.IR MSG . |
| 79 |
Note that you will probably need to quote the regex to prevent spurious |
| 80 |
shell expansion: |
| 81 |
.IP |
| 82 |
.EX |
| 83 |
"(Title underline too short.*|Duplicate implicit target.*)" |
| 84 |
.EE |
| 85 |
.TP |
| 86 |
.BR \-\-ignore\-directives \fIDIR\fR |
| 87 |
Ignore any rST directives from the comma-separated list |
| 88 |
.IR DIR . |
| 89 |
.TP |
| 90 |
.BR \-\-ignore\-substitutions \fISUB\fR |
| 91 |
Ignore any rST substitutions from the comma-separated list |
| 92 |
.IR SUB . |
| 93 |
.TP |
| 94 |
.BR \-\-ignore\-roles \fIROLES\fR |
| 95 |
Ignore any rST roles from the comma-separated list |
| 96 |
.IR ROLES . |
| 97 |
.SH INTEGRATION WITH VIM |
| 98 |
You can instruct |
| 99 |
.B Syntastic |
| 100 |
to check |
| 101 |
.B .rst |
| 102 |
files with |
| 103 |
.B rstcheck |
| 104 |
like this: |
| 105 |
.PP |
| 106 |
.EX |
| 107 |
let g:syntastic_rst_checkers = ['rstcheck'] |
| 108 |
.EE |
| 109 |
.PP |
| 110 |
ALE will detect the presence of |
| 111 |
.B rstcheck |
| 112 |
automatically, no additional configuration is required. |
| 113 |
.SH AUTHOR |
| 114 |
.B rstcheck |
| 115 |
was written by Steven Myint. This manual page was written by |
| 116 |
.MT [email protected] |
| 117 |
Timo R\[u00F6]hling |
| 118 |
.ME |
| 119 |
for Debian and may be reused without restriction. |