Skip to content

Configuration Examples: forbidden

Josh Soref edited this page Feb 25, 2024 · 4 revisions

forbidden Examples

# reject `m_data`
# - vxworks defined it: https://github.com/qtproject/qt-solutions/blame/fb7bc42bfcc578ff3fa3b9ca21a41e96eb37c1c7/qtscriptclassic/src/qscriptbuffer_p.h#L46
\bm_data\b

# Javascript
\bJavascript\b

# MicroSoft

\bMicroSoft\b

# Duplicate words

# Reject duplicate words
\b(\w{3,})\s\g{-1}\b

See also

Notes

  • forbidden operate on a per line basis
  • there is no support for multiline patterns, see Feature: Block Ignore for my current thoughts
Clone this wiki locally