Sonarpython不扫描Jupyter笔记本.ipynb

时间:2019-01-23 23:31:48

标签: python sonarqube jupyter-notebook sonarqube-scan

我正在使用Sonarqube扫描我的GIT存储库,并安装了一个名为“ SonarPython”的插件。

它扫描所有python文件(.py),但不拾取任何扩展名为(.ipynb)的jupyter笔记本。

这是扫描jupyter笔记本的正确插件吗?还有其他方法可以在SonarPython中扫描jupyter笔记本

我的Sonar项目文件

# must be unique in a given SonarQube instance
sonar.projectKey=Python:KeyValueeeeeee
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
sonar.projectName=Myproject
sonar.projectVersion=1.0

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# This property is optional if sonar.modules is set. 
sonar.sources=./

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8 

甚至在Sonarqube上添加了一个设置:

enter image description here

1 个答案:

答案 0 :(得分:0)

在下一行中添加ipynb,如下图所示。

enter image description here