'Can’t scan Jupyter notebooks using SonarQube

I’m using SonarQube version 9.2.0.49834 and sonar-scanner version 4.6.2.2472 on Linux. I tried to scan a Jupyter notebook file but it returns this message: “The main branch of this project is empty.” Then I changed the settings on Administration → Configurations → Languages → Python and added ipynb (the image). But now I get very bad results because it is treating it as a py file which is not the case. I think there should be a better solution available. Any ideas? The image



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source