Skip to content

include-one-time

Check that a file is not included several times

INFO

☑️ The predefined configuration "mslint:recommended" enables this rule.

Rule details

This rule ensures that the same file is not included multiple times by an #Include.

Example of incorrect code for this rule:

maniascript
#Include "Path/To/FileA.Script.txt"
#Include "Path/To/FileA.Script.txt"
#Include "Path/To/FileA.Script.txt" as C

Example of correct code for this rule:

maniascript
#Include "Path/To/FileA.Script.txt"
#Include "Path/To/FileB.Script.txt"
#Include "Path/To/FileC.Script.txt" as C

Resources