From 49c561fa516c39f9884f9d9e09ee7816df4e0b4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=8A=E5=A4=A9=E4=BD=A0=E5=86=99bug=E4=BA=86=E5=90=97?= <2720851545@qq.com> Date: Mon, 18 Dec 2023 13:08:54 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20qodana=20=E6=89=AB=E6=8F=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/qodana_code_quality.yml | 19 +++++++++++++++++++ build.gradle.kts | 8 ++++++-- gradle.properties | 2 +- 3 files changed, 26 insertions(+), 3 deletions(-) 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 0000000..bbe62aa --- /dev/null +++ b/.github/workflows/qodana_code_quality.yml @@ -0,0 +1,19 @@ +name: Qodana +on: + workflow_dispatch: + pull_request: + push: + branches: + - main + +jobs: + qodana: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: 'Qodana Scan' + uses: JetBrains/qodana-action@v2023.3 + env: + QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index c3e0ef8..93e4078 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -58,8 +58,12 @@ qodana { } // Configure Gradle Kover Plugin - read more: https://github.com/Kotlin/kotlinx-kover#configuration -kover.xmlReport { - onCheck.set(true) +koverReport { + defaults { + xml { + onCheck = true + } + } } tasks { diff --git a/gradle.properties b/gradle.properties index 252ca3c..84eef59 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,7 +11,7 @@ pluginSinceBuild=231 # IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension platformType=IU #platformVersion = 2021.3.3 -platformVersion=2023.1.1 +platformVersion=2023.3 # Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html # Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22 platformPlugins=com.intellij.java, com.intellij.spring, org.jetbrains.kotlin