unused_import
Finds an #import nothing in its scope uses.
Category style, warn by default.
#import "Basic";
#import "Math";
main :: () {
print("hello\n");
}warning[unused_import]: unused import "Math"
--> example.jai:2:1
|
2 | #import "Math";
| ^^^^^^^^^^^^^^
|
help: remove it
|
2 - #import "Math";
|
= note: `unused_import` is `warn` by default#import "Basic";
main :: () {
print("hello\n");
}Unnamed imports count as used when any lookup went through them, or (guard for unchecked code) when the module's files mention a name it exports.