Skip to content

trim-array-type

Array type must be on a single line without whitespaces

INFO

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

Rule details

This rule prohibits the use of white spaces and new lines in array types.

Example of incorrect code for this rule:

maniascript
declare Integer[ ][Real] A;
declare Integer[] [Real] B;
declare Integer [][Real] C;
declare Integer[]
[Real] D;

Example of correct code for this rule:

maniascript
declare Integer[][Real] A;

Resources