示例声纳.属性文件用于一个简单的python项目



我被要求提供声纳。用于简单python项目的属性文件。文件是如何工作的,并提供示例文件以供理解。

# 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