prevent-abbreviations
: Smarter whitelist
option possibly deprecating ignore
option
#930
Labels
prevent-abbreviations
: Smarter whitelist
option possibly deprecating ignore
option
#930
There are now two options to exclude an identifier from linting: older
whitelist
and newerignore
. I thinkwhitelist
alone would suffice with the following modification.We could make
whitelist
match any subsequence of the split identifier. For example (following up this #567 (comment)):For
fooE2eBar
all of these would be checked against whitelist:foo
e
2
bar
barE
e2
2e
eBar
fooE2
e2e
2eBar
fooE2e
e2eBar
fooE2eBar
And if any of them is in the whitelist that subsequence is ignored.
But in my opinion it should not ignore the whole identifier if only subsequence matches whitelist.
For example, if the user had
e2e
in theirwhitelist
,e2eErr
should still be fixed toe2eError
.From #891 (comment)
The text was updated successfully, but these errors were encountered: