diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml new file mode 100644 index 00000000..5bd209df --- /dev/null +++ b/.github/workflows/code-quality.yml @@ -0,0 +1,17 @@ +name: Qodana +on: + workflow_dispatch: + pull_request: + push: + branches: + - master + - dev-* +jobs: + qodana: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: 'Qodana Scan' + uses: JetBrains/qodana-action@v2023.2.6 diff --git a/qodana.yml b/qodana.yml new file mode 100644 index 00000000..54921dee --- /dev/null +++ b/qodana.yml @@ -0,0 +1,28 @@ +version: 1.0 +linter: jetbrains/qodana-jvm:2023.2 +profile: + name: qodana.recommended +include: + - name: Anonymous2MethodRef + - name: AssignmentToCatchBlockParameter + - name: AssignmentToLambdaParameter + - name: AssignmentToMethodParameter + - name: AssignmentToNull + - name: Convert2Lambda + - name: DoubleBraceInitialization + - name: EqualsAndHashcode + - name: JavaLangImport + - name: MissortedModifiers + - name: NestedAssignment + - name: NonShortCircuitBoolean + - name: RedundantFieldInitialization + - name: RedundantSuppression + - name: Reformat + - name: ReturnNull + - name: SamePackageImport + - name: StringEquality + - name: UnnecessaryBoxing + - name: UnnecessaryLocalVariable + - name: UnnecessaryUnboxing + - name: UNUSED_IMPORT + - name: PointlessBooleanExpression