简单 python 项目的示例 sonar.properties 文件

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

我被要求为简单的 python 项目提供 sonar.properties 文件。该文件是如何工作的,并提供示例文件以供理解。

sonarqube
1个回答
0
投票
# Project identifier
sonar.projectKey=my-python-project
# Project name
sonar.projectName=My Python Project
# Project version
sonar.projectVersion=1.0
# Source code directory
sonar.sources=src
# Files or directories to exclude
sonar.exclusions=**/tests/**, **/venv/**
# Language for the Python analyzer
sonar.language=py
# SonarQube server URL
sonar.host.url=http://localhost:9000
# SonarQube authentication token (optional, if needed for authentication)
# sonar.login=my-auth-token
# Encoding for Python files
sonar.sourceEncoding=UTF-8
© www.soinside.com 2019 - 2024. All rights reserved.