skuzzle/restrict-imports-enforcer-rule

Separate file parsing from banned import analysis

skuzzle opened this issue · 1 comments

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.

Change for 0.18.0