Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 454 Bytes

import-blacklist.md

File metadata and controls

13 lines (7 loc) · 454 Bytes

Pattern: Blacklisted import

Issue: -

Description

Disallows importing the specified modules directly via import and require. Instead only sub modules may be imported from that module.

Rationale: Some libraries allow importing their submodules instead of the entire module. This is good practice as it avoids loading unused modules.

Further Reading