Help:Extension:CodeMirror/Wikitext linting

This documentation assumes familiarity with linting software and associated terminology.

Wikitext linting in CodeMirror is powered by wikiparser-node. Please note that while the linter is a useful tool to assist with identifying and fixing various issues, it is not an authority and may have stylistic opinions not shared by all editors.

More rules may be added or changed over time based on user feedback. If you have suggestions, please let us know on the talk page. There are plans to allow users to customize their own rules, or select from a set of community-configured rule sets. (phab:T394964)

Wikitext linting rules and their defaults
Rule ID Options Default severity Description
bold-header info Bold apostrophes or HTML tags in headings.
format-leakage info Format leakage can occur in the TOC when a formatting tag is not closed in the header.
fostered-content default warning Fostered table content that will be moved outside the table.
transclusion disabled
h1 warning <h1> tags should not be used.
illegal-attr tabindex warning Invalid attributes in extension and HTML tags.
unknown error
value error
insecure-style disabled Insecure inline styles in HTML tags.
invalid-gallery error Invalid files or image parameters, including those in <gallery> tags.
invalid-imagemap error Invalid images or links in <imagemap> tags.
invalid-invoke error Invalid Scribunto module invocation.
invalid-isbn error Invalid ISBN.
lonely-apos default warning Lonely apostrophes.
word disabled
lonely-bracket converter warning Lonely square brackets or curly braces.
double warning
extLink error
single disabled
lonely-http disabled Lonely http://, https://, PMID, RFC or ISBN.
nested-link error An internal link inside an external link.
no-arg disabled {{{}}} should only be used for transclusion.
no-duplicate attribute error Duplicate attributes, categories, templates parameters, etc.
category warning
id warning
imageParameter error
parameter error
unknownImageParameter disabled
no-ignored error Content ignored by the wikitext parser.
obsolete-attr warning Obsolete attributes in HTML5.
obsolete-tag warning Obsolete HTML tags in HTML5.
parsing-order error Unexpected behaviors due to the parsing order of wikitext.
pipe-like double error Plain-text | characters that look like valid wikitext syntax.
link warning
td warning
table-layout info Inconsistent table layout in terms of row spans and column spans.
tag-like warning Plain-text < that looks like HTML or extension tags.
unbalanced-header error Unbalanced headings, such as starting with == but ending with ===.
unclosed-comment warning Unclosed HTML comments.
unclosed-quote warning Unclosed quotes in tag attributes.
unclosed-table warning Unclosed Wikitext table.
unescaped error Unescaped = in external URLs interferes with template parameter parsing.
unknown-page info Templates in link targets.
unmatched-tag disabled Unmatched HTML tags.
unterminated-url warning External URLs containing pipes or full-width punctuation marks.
url-encoding warning URL encoding in internal links is unnecessary.
var-anchor info Anchors that may change due to changes in other parts of the page.
void-ext error Void extension tags containing content.