Redundant to pass string.length()
as an argument to string.substring
#660
Labels
D-easy
Easy to implement.
enhancement
New feature or request
new-lint
A new lint.
unnecessary-complexity
What it does
Detects the below code
Lint Name
REDUNDANT_SUBSTRING_LENGTH
Category
complexity
Example
Could be written as:
The text was updated successfully, but these errors were encountered: