rrrene / credo

A static code analysis tool for the Elixir language with a focus on code consistency and teaching.
http://credo-ci.org/
MIT License
4.91k stars 414 forks source link

fix: MultiAliasImportRequireUse collection and false positive #1095

Closed msutkowski closed 9 months ago

msutkowski commented 9 months ago

Fixes #1023

When you have files that contain multiple modules this rule will raise a false positive and force a user to disable the rule for the file. These changes solve that, but they do not solve the issue where you have mixed usage in just a single file. We could do that, but the scope was increase quite a bit and most likely isn't super important.

rrrene commented 9 months ago

@msutkowski Thx!