no-unused-variables 
Forbid unused variables
INFO
☑️ The predefined configuration "mslint:recommended" enables this rule.
Rule details 
This rule prohibits unused variables and function parameters.
Settings 
- exceptionsa list of variable and function parameter names that are not checked by the rule. Default- [].
Example of incorrect code for this rule:
maniascript
/*
{
  "exceptions" = ["_CanBeUnused", "CanBeUnused"]
}
*/
Integer FunctionA(
  Integer _A, // [!code error]
  Integer _B,
  Integer _CanBeUnused
) {
  return _B + 10;
}
main() {
  declare Integer C;
  declare Integer D;
  declare Integer CanBeUnused;
  D = 1; //< Assigning a value is not enough, the variable must be read to be considered used
}Example of correct code for this rule:
maniascript
/*
{
  "exceptions" = ["_CanBeUnused", "CanBeUnused"]
}
*/
Integer FunctionA(
  Integer _A, // [!code hl]
  Integer _B,
  Integer _CanBeUnused
) {
  return _B + _A;
}
main() {
  declare Integer C;
  declare Integer D;
  declare Integer CanBeUnused;
  D = 1;
  Function(C);
  if (D > 0) {
  }
}