This might be a better implementation for the confusing identifier check. The goal is to detect when variables have a common prefix, like argA, argB, argC or arg1, arg2, arg3.
To detect this:
Check if there are at least k variables that have a common prefix of length n and their remaining part matches a given sequence like [0, 1, 2, ...] or [A, B, C, ...].
What it does
This might be a better implementation for the confusing identifier check. The goal is to detect when variables have a common prefix, like
argA
,argB
,argC
orarg1
,arg2
,arg3
.To detect this: Check if there are at least
k
variables that have a common prefix of lengthn
and their remaining part matches a given sequence like[0, 1, 2, ...]
or[A, B, C, ...]
.Lint Name
No response
Category
naming
Example
Could be written as: