-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce JetBrains Qodana quality scans (#96)
* Introduce JetBrains Qodana quality scans * Fix or suppress code inspections
- Loading branch information
1 parent
378c6d2
commit b4f3eda
Showing
38 changed files
with
294 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: '🧠 Qodana: Static Code Analysis' | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'src/**' | ||
- '.github/workflows/qodana.yml' | ||
types: [opened, synchronize, reopened] | ||
push: | ||
branches: | ||
- 'master' | ||
paths: | ||
- 'src/**' | ||
- '.github/workflows/qodana.yml' | ||
schedule: | ||
- cron: '17 5 * * 0' # Random time | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
qodana: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
checks: write | ||
steps: | ||
- name: 📥 checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: 💾 cache nuget packages | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ runner.temp }}/qodana/caches | ||
key: ${{ runner.os }}-qodana-${{ github.ref }}-${{ hashFiles('**/*.csproj') }} | ||
restore-keys: | | ||
${{ runner.os }}-qodana-${{ github.ref }} | ||
- name: 🔬 Qodana Scan | ||
uses: JetBrains/[email protected] | ||
with: | ||
pr-mode: false | ||
args: | | ||
--project-dir,src, | ||
--save-report=false | ||
results-dir: ${{ runner.temp }}/qodana/results | ||
cache-dir: ${{ runner.temp }}/qodana/caches | ||
primary-cache-key: ${{ runner.os }}-qodana-${{ github.ref }}-${{ hashFiles('**/*.csproj') }} | ||
additional-cache-key: ${{ runner.os }}-qodana-${{ github.ref }} | ||
upload-result: true | ||
env: | ||
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} | ||
- name: 📊 Upload SARIF file for GitHub Advanced Security Dashboard | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json | ||
if: always() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/Objectivity.AutoFixture.XUnit2.AutoFakeItEasy.Tests/IFakeObjectUnderTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
namespace Objectivity.AutoFixture.XUnit2.AutoFakeItEasy.Tests | ||
{ | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
public interface IFakeObjectUnderTest | ||
{ | ||
[SuppressMessage("ReSharper", "UnusedMember.Global", Justification = "Required for test.")] | ||
public string StringProperty { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/Objectivity.AutoFixture.XUnit2.AutoMoq.Tests/IFakeObjectUnderTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
namespace Objectivity.AutoFixture.XUnit2.AutoMoq.Tests | ||
{ | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
public interface IFakeObjectUnderTest | ||
{ | ||
[SuppressMessage("ReSharper", "UnusedMember.Global", Justification = "Required for test.")] | ||
public string StringProperty { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/Objectivity.AutoFixture.XUnit2.AutoNSubstitute.Tests/IFakeObjectUnderTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
namespace Objectivity.AutoFixture.XUnit2.AutoNSubstitute.Tests | ||
{ | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
public interface IFakeObjectUnderTest | ||
{ | ||
[SuppressMessage("ReSharper", "UnusedMember.Global", Justification = "Required for test.")] | ||
public string StringProperty { get; set; } | ||
} | ||
} |
Oops, something went wrong.