Warn for any ignored file during source parsing

Not only for files with a .ak extension.
This commit is contained in:
KtorZ
2024-09-03 15:28:09 +02:00
parent 038f6ecbfd
commit 007b85b864

View File

@@ -1003,9 +1003,8 @@ where
let path = d.into_path();
let keep = is_aiken_path(&path, dir);
let ext = path.extension();
if !keep && ext.unwrap_or_default() == "ak" {
if !keep {
self.warnings
.push(Warning::InvalidModuleName { path: path.clone() });
}