Page MenuHomePhabricator

Linter should not check lua, css and javascript code with rules for html and wiki syntax
Closed, DuplicatePublic

Description

It makes no sense to check lua, css and javascript (mediawiki:*.css, mediawiki:*.js, module:) with rules for html and wiki syntax. Following false positives are listed at Wikivoyage/de:

  • missing-end-tag: missing div tag in MediaWiki:Common.css
  • bogus-image-options: listing of lua snippets in caseof creating image tags

Example

sCode = sCode

.. '[[Image:' .. mark .. '|' .. lmarksize .. 'x' .. lmarksize
.. 'px|top|link=' .. name .. '|' .. name .. ']]'