no-unused-include
An included library must be used in the file
INFO
☑️ The predefined configuration "mslint:recommended" enables this rule.
Rule details
This rule prohibits adding a library to a script if it will not be utilized later.
Example of incorrect code for this rule:
maniascript
#Include "A" as A
#Include "B" as B
main() {
B::B();
}Example of correct code for this rule:
maniascript
#Include "A" as A
#Include "B" as B
main() {
A::A();
B::B();
}