Scroll to navigation

RSTCHECK(1) Text Processing Tools RSTCHECK(1)

NAME

rstcheck - check syntax of reStructuredText files and nested code blocks

SYNOPSIS

rstcheck [--configFILE][-r][--reportLEVEL][--ignore-languageLANG][--ignore-messagesMSG][--ignore-directivesDIR][--ignore-substitutionsSUB][--ignore-rolesROLES]FILE.rst[FILE.rst...]

DESCRIPTION

rstcheckvalidates the syntax of reStructuredText files and can also verify the syntaxfor a number of languages in nested code blocks:

  • Bash
  • Doctest
  • C (C99)
  • C++ (C++11)
  • JSON
  • XML
  • Python
  • restructuredTest

OPTIONS

load configuration fromFILE.The configuration is expected in INI file format with a section[rstcheck]and key-value pairs which correspond with command line options.
Treat input file names as directories and recursively check all.rstfiles within.
restrict reported severities toLEVELor higher.Valid levels in increasing order of severity are:info, warning, error, severe.You can also specifynoneto suppress all output.
Ignore code blocks with one of the languagesLANG,whereLANGis a comma-separated list of code block language identifiers. You can alsodisable language checking with a block comment such as
.. rstcheck: ignore-language=cpp,python,rst
    
near the beginning of the input file.
Ignore all messages that match the regular expressionMSG.Note that you will probably need to quote the regex to prevent spuriousshell expansion:
"(Title underline too short.*|Duplicate implicit target.*)"
    
Ignore any rST directives from the comma-separated listDIR.
Ignore any rST substitutions from the comma-separated listSUB.
Ignore any rST roles from the comma-separated listROLES.

INTEGRATIONWITHVIM

You can instructSyntasticto check.rstfiles withrstchecklike this:

let g:syntastic_rst_checkers = ['rstcheck']

ALE will detect the presence ofrstcheckautomatically, no additional configuration is required.

AUTHOR

rstcheckwas written by Steven Myint. This manual page was written byTimo Röhlingfor Debian and may be reused without restriction.

6.2.4+~1.2.1