diff options
author | Ross Williams <ross@ross-williams.net> | 2023-08-14 10:18:25 -0400 |
---|---|---|
committer | Ross Williams <ross@ross-williams.net> | 2023-08-14 10:18:25 -0400 |
commit | 39bb7916ff6a002dc6388fe35a95653a8e23aa16 (patch) | |
tree | db21066b322687e0183ec9b1e9c475ce7c798f5a /tools | |
parent | f09aa4104a56996e838dd30d28bbef706e461469 (diff) | |
download | lua-language-server-39bb7916ff6a002dc6388fe35a95653a8e23aa16.zip |
Ignore cast-local-type diagnostic for `_` local
The `unused-local` diagnostic already hard-codes to exclude `_`.
`cast-local-type` should also ignore `_` variables, to avoid warnings
in, for example, nested loops like:
```lua
for _, list in ipairs(lists) do
for _, item in ipairs(list) do
_, result = pcall(...)
end
end
```
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions