Closed
Description
Hello,
While analyzing plotly.py on SonarCloud I saw what looks like an error in packages/python/plotly/plotly/figure_factory/_dendrogram.py
:
You can see the issue in SonarCloud here.
In this context the variable n
is not defined. It is probable that the developer intended to write nc
instead of n
as she/he/they did a few lines above.
The resulting code would be
default_colors[nc] = "rgb(0,116,217)"
In case you want to scan Plotly on SonarCloud here is what the configuration looks like with Github actions and here is the config if you prefer to let SonarCloud scan your project by itself. It is free for open source projects.
Metadata
Metadata
Assignees
Labels
No labels