Fix SonarCloud configuration and fenced code blocks

This commit is contained in:
2025-04-21 04:41:12 +01:00
parent 4ebe55b940
commit 69cd192f49
4 changed files with 20 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: https://sonarcloud.io
codacy:
name: Codacy Analysis

View File

@@ -273,6 +273,7 @@ To ensure your code passes the quality checks from these tools, follow these gui
* Copy the output from the code quality tool and paste it into your AI assistant chat
* Ask the AI to help you understand and resolve the issues
* Example prompt:
```text
I received the following feedback from [Tool Name]. Please help me understand and resolve these issues:

17
sonar-project.properties Normal file
View File

@@ -0,0 +1,17 @@
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
sonar.sources=.
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/**

View File

@@ -273,6 +273,7 @@ To ensure your code passes the quality checks from these tools, follow these gui
* Copy the output from the code quality tool and paste it into your AI assistant chat
* Ask the AI to help you understand and resolve the issues
* Example prompt:
```text
I received the following feedback from [Tool Name]. Please help me understand and resolve these issues: