invalid invoke - bhsd-harry/wikiparser-node GitHub Wiki

invalid-invoke

❌ By default, this rule reports invalid {{#invoke:}} calls as errors.

Options

function

This option can be configured to specify the severity of missing function names in {{#invoke:}} calls.

Examples of incorrect code for { "invalid-invoke": [ 0, { "function": 2 } ] }:

{{#invoke:Foo}}

Examples of correct code for { "invalid-invoke": [ 2, { "function": 0 } ] }:

{{#invoke:Foo}}

name

This option can be configured to specify the severity of invalid module names in {{#invoke:}} calls.

Examples of incorrect code for { "invalid-invoke": [ 0, { "name": 2 } ] }:

{{#invoke:<foo>|bar}}

Examples of correct code for { "invalid-invoke": [ 2, { "name": 0 } ] }:

{{#invoke:<foo>|bar}}
⚠️ **GitHub.com Fallback** ⚠️