Our Python source code may contain unused import that we would like to detect during Sonar analysis. There are some rules for unused stuff: Unused assignments should be removed
and Unused local variables should be removed
.
We are running on Data Center Edition
Version 8.9.7 (build 52159)
and we are looking for a rule such as Unused import should be removed
.
Hello @RichardDally ,
Welcome to our community and thanks a lot for your suggestion.
We have this rule about unused import in our backlog (S1128).
I cannot give you an exact date yet, however we’re discussing about implementing this rule relatively soon.
Thanks!