From c41430ac63bb971dfc873fd50a18244bee9f204c Mon Sep 17 00:00:00 2001 From: Qodana Application Date: Thu, 31 Oct 2024 16:52:24 +0000 Subject: [PATCH 1/5] Add qodana.yaml file --- qodana.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 qodana.yaml diff --git a/qodana.yaml b/qodana.yaml new file mode 100644 index 00000000..2a42d2ff --- /dev/null +++ b/qodana.yaml @@ -0,0 +1,6 @@ +version: "1.0" +linter: jetbrains/qodana-dotnet:2024.1 +profile: + name: qodana.recommended +include: + - name: CheckDependencyLicenses \ No newline at end of file From ac0bcc2575a5deaae8ff5387c3c5b290176304f1 Mon Sep 17 00:00:00 2001 From: Qodana Application Date: Thu, 31 Oct 2024 16:52:24 +0000 Subject: [PATCH 2/5] Add github workflow file --- .github/workflows/qodana_code_quality.yml | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/qodana_code_quality.yml diff --git a/.github/workflows/qodana_code_quality.yml b/.github/workflows/qodana_code_quality.yml new file mode 100644 index 00000000..580a1591 --- /dev/null +++ b/.github/workflows/qodana_code_quality.yml @@ -0,0 +1,28 @@ +name: Qodana +on: + workflow_dispatch: + pull_request: + push: + branches: # Specify your branches here + - main # The 'main' branch + - 'releases/*' # The release branches + +jobs: + qodana: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + checks: write + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit + fetch-depth: 0 # a full history is required for pull request analysis + - name: 'Qodana Scan' + uses: JetBrains/qodana-action@v2024.1 + with: + pr-mode: false + env: + QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_1781740120 }} + QODANA_ENDPOINT: 'https://qodana.cloud' \ No newline at end of file From 0c514f8d76e08745bdf31372768fe5bfe3f6a9e0 Mon Sep 17 00:00:00 2001 From: Evgeny Gorbovoy Date: Sun, 8 Dec 2024 18:38:03 +0100 Subject: [PATCH 3/5] updated qodana.yaml --- qodana.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qodana.yaml b/qodana.yaml index 2a42d2ff..d475155c 100644 --- a/qodana.yaml +++ b/qodana.yaml @@ -2,5 +2,12 @@ version: "1.0" linter: jetbrains/qodana-dotnet:2024.1 profile: name: qodana.recommended +environment: + QODANA_DOTNET_SOLUTION: "Consolonia.sln" include: - - name: CheckDependencyLicenses \ No newline at end of file + - name: CheckDependencyLicenses +exclude: + - name: All + paths: + - Consolonia.GuiCS + - Example From 3a9341f05a68470d0a07854fa3116f602d907a12 Mon Sep 17 00:00:00 2001 From: Evgeny Gorbovoy Date: Sun, 8 Dec 2024 18:44:47 +0100 Subject: [PATCH 4/5] + solution provided --- qodana.yaml | 4 ++-- src/Consolonia.sln | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/qodana.yaml b/qodana.yaml index d475155c..dc8375e2 100644 --- a/qodana.yaml +++ b/qodana.yaml @@ -2,8 +2,8 @@ version: "1.0" linter: jetbrains/qodana-dotnet:2024.1 profile: name: qodana.recommended -environment: - QODANA_DOTNET_SOLUTION: "Consolonia.sln" +dotnet: + solution: ./src/Consolonia.sln include: - name: CheckDependencyLicenses exclude: diff --git a/src/Consolonia.sln b/src/Consolonia.sln index ebffe718..63633713 100644 --- a/src/Consolonia.sln +++ b/src/Consolonia.sln @@ -39,6 +39,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{ ProjectSection(SolutionItems) = preProject ..\.github\workflows\editorconfig.yml = ..\.github\workflows\editorconfig.yml ..\.github\workflows\general_build.yml = ..\.github\workflows\general_build.yml + ..\qodana.yaml = ..\qodana.yaml EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{F756B909-46C5-43FF-8322-86EC36B51841}" From b21ca78936b362cfa9f82eee631dc4ad9bffbaab Mon Sep 17 00:00:00 2001 From: Evgeny Gorbovoy Date: Sun, 8 Dec 2024 18:49:47 +0100 Subject: [PATCH 5/5] +1 --- qodana.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qodana.yaml b/qodana.yaml index dc8375e2..c57fbe4c 100644 --- a/qodana.yaml +++ b/qodana.yaml @@ -3,7 +3,7 @@ linter: jetbrains/qodana-dotnet:2024.1 profile: name: qodana.recommended dotnet: - solution: ./src/Consolonia.sln + solution: src/Consolonia.sln include: - name: CheckDependencyLicenses exclude: