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
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
1 changed files with 1 additions and 2 deletions

View File

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