RSTCHECK(1)
π RSTCHECK β the manual page, bestie edition π
okay so you found the rstcheck(1) page and it's giving very much "text processing tools" energy. let's get into it π
β¨ NAME β¨
rstcheck β check the syntax of reStructuredText files, and also of the nested code blocks hiding inside them π¦
β¨ SYNOPSIS β¨
[--ignore-messages MSG] [--ignore-directives DIR]
[--ignore-substitutions SUB] [--ignore-roles ROLES] FILE.rst
[FILE.rst ...]
β¨ DESCRIPTION β¨
So basically rstcheck is out here validating the syntax of your reStructuredText files β and not just the rST itself, no ma'am. It can also vibe-check the syntax of a whole bunch of languages that show up in your nested code blocks π
The languages it can check are:
- Bash
- Doctest
- C (C99)
- C++ (C++11)
- JSON
- XML
- Python
- restructuredTest
periodt. that's the list. π
β¨ OPTIONS β¨
--config FILEβ loads your config fromFILE. The config is expected to be in INI file format, with a section called[rstcheck]and key-value pairs that correspond with the command line options. iykyk πΈ-r,--recursiveβ treats the input file names as directories and recursively checks every.rstfile inside them. it's giving "do the whole folder, not just one file" β¨--report LEVELβ restricts the reported severities toLEVELor higher. the valid levels, in increasing order of severity, are:info,warning,error,severe. you can also saynoneto suppress all output entirely. no thoughts, no output π--ignore-language LANG,--ignore LANGβ ignore code blocks with one of the languages inLANG, whereLANGis a comma-separated list of code block language identifiers. you can ALSO disable language checking with a block comment, like this:
.. rstcheck: ignore-language=cpp,python,rst
placed near the beginning of the input file. two ways to do the same thing, slay π«Ά
--ignore-messages (MSG)β ignore all messages that match the regular expressionMSG. heads up bestie: you will probably need to quote the regex so your shell doesn't do spurious expansion on you π like:
"(Title underline too short.*|Duplicate implicit target.*)"
--ignore-directivesDIRβ ignore any rST directives from the comma-separated listDIR.--ignore-substitutionsSUBβ ignore any rST substitutions from the comma-separated listSUB.--ignore-rolesROLESβ ignore any rST roles from the comma-separated listROLES.
β¨ INTEGRATION WITH VIM β¨
You can tell Syntastic to check .rst files with rstcheck like this:
let g:syntastic_rst_checkers = ['rstcheck']
And ALE? ALE will detect the presence of rstcheck automatically β no additional configuration required. it just knows. main character energy fr fr π
β¨ AUTHOR β¨
rstcheck was written by Steven Myint. This manual page was written by Timo RΓΆhling for Debian and may be reused without restriction. π«Ά
and that's the whole page, no cap π this was version 6.2.4+~1.2.1 of the rstcheck(1) manual β go forth and check your rST, bestie π¦β¨
π¦ where this page comes from
- debian trixie: rstcheck 6.2.4+~1.2.1-1 Β· MIT
- ubuntu questing: rstcheck 6.2.4+~1.2.1-1
- ubuntu resolute: rstcheck 6.2.4+~1.2.1-1build1 Β· MIT
- ubuntu stonking: rstcheck 6.2.4+~1.2.1-3 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms