This inspection highlights variables, which could be declared as
The message is displayed under these conditions:
- The current is a
localkeyword is not available in POSIX shell scripts.
- The declaration is inside of a function
- All references to the declaration are in that function.
References outside of it or sourced files inside of the function prevent it from being declared as
There’s no quick fix yet—it’ll be added as soon as possible.