This PR provides an extension to the existing import-alias-naming rule. While it preserves the backwards compatible configuration, with which it is possible to define an allow regex pattern for import aliases, this PR brings a way to configure any or both pattern types: allowRegex and/or denyRegex. This brings two types of configuration:
The original one, allow pattern:
# the original one, allow pattern
[rule.import-alias-naming]
arguments = ["^[a-z][a-z0-9]{0,}$"]
This PR provides an extension to the existing
import-alias-naming
rule. While it preserves the backwards compatible configuration, with which it is possible to define an allow regex pattern for import aliases, this PR brings a way to configure any or both pattern types:allowRegex
and/ordenyRegex
. This brings two types of configuration:Closes #924.