Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Qodana Config #6666

Closed
wants to merge 17 commits into from
Closed
8 changes: 6 additions & 2 deletions .github/workflows/qodana_code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
push:
branches:
- main
- mst/jetbrains-build
- mst/mst/build-fix-0001

jobs:
qodana:
runs-on: ubuntu-latest
runs-on: self-ubuntu
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -19,3 +19,7 @@ jobs:
uses: JetBrains/[email protected]
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
with:
args: --ide,QDNET
pr-mode: false
upload-result: true
30 changes: 8 additions & 22 deletions qodana.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,17 @@
#-------------------------------------------------------------------------------#
# Qodana analysis is configured by qodana.yaml file #
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
#-------------------------------------------------------------------------------#
version: "1.0"

#Specify inspection profile for code analysis
ide: QDNET

profile:
name: qodana.starter
name: qodana.recommended

#Enable inspections
#include:
# - name: <SomeEnabledInspectionId>
failThreshold: 1

#Disable inspections
#exclude:
# - name: <SomeDisabledInspectionId>
# paths:
# - <path/where/not/run/inspection>
exclude:
- name: NotAccessedPositionalProperty.Global

#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
bootstrap: sh ./init.sh
bootstrap: |
sh ./restore.sh

#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline)
#plugins:
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com)
dotnet:
solution: All.sln

#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
linter: jetbrains/qodana-dotnet:latest
1 change: 1 addition & 0 deletions restore.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./build.cmd restore
1 change: 1 addition & 0 deletions restore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./build.sh restore
Loading
Loading