Skip to content

include-use-common-namespace

Always use the same common namespaces for the standard libraries

INFO

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

Rule details

This rule enforces the use of particular namespaces when including common libraries.

  • MathLib must use ML
  • TextLib must use TL
  • MapUnits must use MU
  • AnimLib must use AL
  • TimeLib must use TiL
  • ColorLib must use CL

Example of incorrect code for this rule:

maniascript
#Include "MathLib" as A
#Include "TextLib" as B
#Include "MapUnits" as C
#Include "AnimLib" as D
#Include "TimeLib" as E
#Include "ColorLib" as F

Example of correct code for this rule:

maniascript
#Include "MathLib" as ML
#Include "TextLib" as TL
#Include "MapUnits" as MU
#Include "AnimLib" as AL
#Include "TimeLib" as TiL
#Include "ColorLib" as CL

Resources