Configure SonarCloud and Codacy with proper settings

This commit is contained in:
2025-04-21 04:48:12 +01:00
parent aa62142e4c
commit 36840c46c1
2 changed files with 79 additions and 12 deletions

View File

@@ -1,17 +1,27 @@
# Required metadata
sonar.projectKey=wpallstars_wp-plugin-starter-template-for-ai-coding
sonar.organization=wpallstars
# This is the name and version displayed in the SonarCloud UI.
sonar.projectName=wp-plugin-starter-template-for-ai-coding
sonar.projectVersion=0.1.10
# Path is relative to the sonar-project.properties file
# Path to source directories
sonar.sources=.
# Path to test directories (comment if no test)
sonar.tests=tests
# Source encoding
sonar.sourceEncoding=UTF-8
# Exclusions for copy-paste detection
sonar.cpd.exclusions=tests/**
# Exclude directories and files
sonar.exclusions=vendor/**,node_modules/**,tests/**,bin/**,build/**,dist/**,.github/**,.git/**
# PHP specific configuration
sonar.php.coverage.reportPaths=coverage.xml
sonar.php.tests.reportPath=test-report.xml
# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8
# Exclude directories
sonar.exclusions=vendor/**,node_modules/**,tests/**,bin/**,build/**,dist/**
# Additional parameters
sonar.verbose=true