Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- what are you trying to achieve
- what have you tried so far to achieve this
SonarQube 9.3 and SonarLint 7.4
the error "remove the unused local variable’ is raised when a dummy local variable is used.
Sometimes this is unavoidable, as in
for _i in Range(10):
the workaround is to just use “_” but we already have a global _() used for translation purposes (gettext) so we get UnbouldLocalVariable warnings.
Is it possible to specify a regex to define ignored unused locals? In pylint for example it may be anything beginning with _, or dummy.