JavaScript: Add new query UnusedIndexVariable.

This commit is contained in:
Max Schaefer
2019-09-09 17:01:21 +01:00
parent cdcc716675
commit 500cde68c3
17 changed files with 170 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
| **Query** | **Tags** | **Purpose** |
|---------------------------------------------------------------------------|-------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Unused index variable (`js/unused-index-variable`) | correctness | Highlights loops that iterate over an array, but do not use the index variable to access array elements, indicating a possible typo or logic error. |
## Changes to existing queries