diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 73349c5..c3f63ac 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -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 diff --git a/.wiki/Coding-Standards.md b/.wiki/Coding-Standards.md index 685ee87..c2efa87 100644 --- a/.wiki/Coding-Standards.md +++ b/.wiki/Coding-Standards.md @@ -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: diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..e8f0f99 --- /dev/null +++ b/sonar-project.properties @@ -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/** diff --git a/wiki/Coding-Standards.md b/wiki/Coding-Standards.md index 685ee87..c2efa87 100644 --- a/wiki/Coding-Standards.md +++ b/wiki/Coding-Standards.md @@ -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: