Skip to content

Commit

Permalink
Merge pull request #4 from egbakou/ci/quality
Browse files Browse the repository at this point in the history
chore(ci:quality): added qodana ci workflow
  • Loading branch information
egbakou authored Dec 17, 2023
2 parents 952620e + 3b467e5 commit 06f5cd0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 12 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Qodana
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- 'releases/*'

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@v2023.2
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} # read the steps about it below
20 changes: 8 additions & 12 deletions qodana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,28 @@
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
#-------------------------------------------------------------------------------#
version: "1.0"

#Specify inspection profile for code analysis
profile:
name: qodana.starter

dotnet:
solution: DomainVerifier.sln

dotnet:
solution: DomainVerifier.sln
#Enable inspections
#include:
# - name: <SomeEnabledInspectionId>

#Disable inspections
exclude:
- name: AutoPropertyCanBeMadeGetOnly.Local
- name: UnusedMember.Local
- name: UnusedMethodReturnValue.Local
#exclude:
# - name: AutoPropertyCanBeMadeGetOnly.Local
# - name: UnusedMember.Local
# - name: UnusedMethodReturnValue.Local
# paths:
# - <path/where/not/run/inspection>

#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
#bootstrap: sh ./prepare-qodana.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)

#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
linter: jetbrains/qodana-dotnet:latest
include:
- name: CheckDependencyLicenses

0 comments on commit 06f5cd0

Please sign in to comment.