Separate file parsing from banned import analysis
skuzzle opened this issue · 1 comments
skuzzle commented
Currently, the ImportMatcher
class has multiple concerns:
- parsing the source file
- selecting the applicable
BannedImportGroup
- matching the found import statements against the banned import definitions
These concerns should be split up into multiple classes so that parsing and checking for banned imports become separate processes.
skuzzle commented
Change for 0.18.0