Sonarpython无法扫描Jupyter笔记本.ipynb

问题描述 投票:2回答:1

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

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

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

我的声纳项目文件

# 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

我正在使用Sonarqube扫描我的GIT存储库,并安装了一个名为“ SonarPython”的插件。它扫描所有python文件(.py),但不拾取任何扩展名为(....

python sonarqube jupyter-notebook sonarqube-scan
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.