繁体   English   中英

Sonarpython 不扫描 Jupyter notebook .ipynb

[英]Sonarpython not scanning Jupyter notebook .ipynb

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

它会扫描所有 python 文件 (.py),但不会选择任何带有扩展名 (.ipynb) 的 jupyter notebook。

这是扫描 jupyter notebook 的正确插件吗? 有没有其他方法可以在 SonarPython 中扫描 jupyter notebook

我的声纳项目文件

# 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 上添加了一个设置:

在此处输入图片说明

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

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM