Skip to content

Plugin Directory

James Tauber edited this page Nov 22, 2019 · 3 revisions

Built-in plugins

text_validator.plugins.whitespace

Configuration:

  • ENCODING (character encoding to assume; defaults to UTF-8)
  • CHECK_CRLF (whether to complain about CRLF line breaks)
  • CHECK_TABS (whether to complain about TABs)
  • CHECK_TRAILING_WHITESPACE (whether to complain about trailing whitespace on a line)
  • CHECK_NO_EOF_NEWLINE (whether to complain about the final line not having a newline character)

text_validator.plugins.unicode

Configuration:

  • CONFIRM_UTF_8_NFC (whether to complain if not NFC)
  • CONFIRM_UTF_8_NFD (whether to complain if not NFD)

text_validator.plugins.characters

Configuration:

  • ENCODING (character encoding to assume; defaults to UTF-8)
  • REPLACE_CHARS (a list of pairs of bad character and suggested replacement)
  • TOKEN_REGEXES (a list of regexes that each whitespace-separated token must match one of) — new in 0.2

text_validator.plugins.ref_line_format

Configuration:

  • ENCODING (character encoding to assume; defaults to UTF-8)
  • REF_REGEX (regular express the first token in each line must match)

Will also complain if there are any blank lines and if there is more than one space between tokens anywhere.

You can’t perform that action at this time.