RSTCHECK(1)

πŸ“¦
version 6.2.4+~1.2.1 Β· 3 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸŽ€ 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 from FILE. 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 .rst file inside them. it's giving "do the whole folder, not just one file" ✨
  • --report LEVEL β€” restricts the reported severities to LEVEL or higher. the valid levels, in increasing order of severity, are: info, warning, error, severe. you can also say none to suppress all output entirely. no thoughts, no output πŸ’€
  • --ignore-language LANG, --ignore LANG β€” ignore code blocks with one of the languages in LANG, where LANG is 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 expression MSG. 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 list DIR.
  • --ignore-substitutionsSUB β€” ignore any rST substitutions from the comma-separated list SUB.
  • --ignore-rolesROLES β€” ignore any rST roles from the comma-separated list ROLES.

✨ 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