From a12ea7071a9c4825dd8f763549968b3b2c9724a5 Mon Sep 17 00:00:00 2001 From: Sujasinee Kodcharin <99583046+SujasineeK@users.noreply.github.com> Date: Tue, 27 Feb 2024 20:48:56 +0700 Subject: [PATCH 1/4] Create sonarcloud.yml --- .github/workflows/sonarcloud.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/sonarcloud.yml diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml new file mode 100644 index 00000000..b66c2094 --- /dev/null +++ b/.github/workflows/sonarcloud.yml @@ -0,0 +1,20 @@ +name: SonarCloud workflow +on: + push: + branches: + - master + pull_request: + types: [opened, synchronize, reopened] +jobs: + sonarcloud: + name: SonarCloud + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From e52596770b933fd19395aa061a3183adbed5aff9 Mon Sep 17 00:00:00 2001 From: Sujasinee Kodcharin <99583046+SujasineeK@users.noreply.github.com> Date: Tue, 27 Feb 2024 20:51:18 +0700 Subject: [PATCH 2/4] Create 'sonar-project.properties --- 'sonar-project.properties | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 'sonar-project.properties diff --git a/'sonar-project.properties b/'sonar-project.properties new file mode 100644 index 00000000..f0c6f9c0 --- /dev/null +++ b/'sonar-project.properties @@ -0,0 +1,6 @@ +sonar.projectKey=SujasineeK_Gemini-2023-DST-individual +sonar.organization=ySujasineeK +sonar.language=java +sonar.java.binaries=. +sonar.exclusions=**/*.java +sonar.coverage.exclusions=**/*.java From 4b9b87be5e2c5d228720ac4739441ffafa258eea Mon Sep 17 00:00:00 2001 From: Sujasinee Kodcharin <99583046+SujasineeK@users.noreply.github.com> Date: Tue, 27 Feb 2024 20:52:36 +0700 Subject: [PATCH 3/4] Update and rename 'sonar-project.properties to sonar-project.properties --- 'sonar-project.properties | 6 ------ sonar-project.properties | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 6 deletions(-) delete mode 100644 'sonar-project.properties create mode 100644 sonar-project.properties diff --git a/'sonar-project.properties b/'sonar-project.properties deleted file mode 100644 index f0c6f9c0..00000000 --- a/'sonar-project.properties +++ /dev/null @@ -1,6 +0,0 @@ -sonar.projectKey=SujasineeK_Gemini-2023-DST-individual -sonar.organization=ySujasineeK -sonar.language=java -sonar.java.binaries=. -sonar.exclusions=**/*.java -sonar.coverage.exclusions=**/*.java diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 00000000..2bf1cd98 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,17 @@ +sonar.projectKey=SujasineeK_Gemini-2023-DST-individual +sonar.organization=sujasineek +sonar.language=java +sonar.java.binaries=. +sonar.exclusions=**/*.java +sonar.coverage.exclusions=**/*.java + +# This is the name and version displayed in the SonarCloud UI. +#sonar.projectName=Gemini-2023-DST-individual +#sonar.projectVersion=1.0 + + +# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. +#sonar.sources=. + +# Encoding of the source code. Default is default system encoding +#sonar.sourceEncoding=UTF-8 From 773b1c08ae712c9a662c6cdf0c16818ed9915aa2 Mon Sep 17 00:00:00 2001 From: Sujasinee Kodcharin <99583046+SujasineeK@users.noreply.github.com> Date: Tue, 27 Feb 2024 21:02:41 +0700 Subject: [PATCH 4/4] Update sonarcloud.yml --- .github/workflows/sonarcloud.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index b66c2094..d15c0efe 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -1,8 +1,5 @@ name: SonarCloud workflow on: - push: - branches: - - master pull_request: types: [opened, synchronize, reopened] jobs: