Add new complexity rule for max imported names for a single module #1151
Labels
help wanted
Extra attention is needed
level:starter
Good for newcomers
pr-merged
rule request
Adding a new rule
Milestone
Rule request
Thesis
Currently
TooManyImportedNamesViolation
only works on module level.So, you can import up to
50
names from a single package! Like this:And it won't be an issue.
This needs to be fixed. I suggest to add
TooManyImportedModuleNamesViolation
that will enforce to have less than7?
names per each module.Good:
import some
andsome.name1
,some.name50
Bad: example above
This rule needs to be configurable.
The text was updated successfully, but these errors were encountered: