Warn for any ignored file during source parsing
Not only for files with a .ak extension.
This commit is contained in:
parent
038f6ecbfd
commit
007b85b864
|
@ -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() });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue