2023-04-03 09:19:01 +03:00
|
|
|
name: "ReSharper"
|
2022-12-09 14:47:11 +03:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
on:
|
2023-07-20 23:41:02 +03:00
|
|
|
push:
|
|
|
|
branches: [ "*" ]
|
2022-12-09 14:47:11 +03:00
|
|
|
pull_request:
|
|
|
|
branches: [ "master" ]
|
2023-07-18 15:25:02 +03:00
|
|
|
merge_group:
|
|
|
|
types: [checks_requested]
|
2022-12-09 14:47:11 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
inspect-code:
|
|
|
|
name: Inspect code
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Restore dependencies and tools
|
|
|
|
run: dotnet restore
|
|
|
|
|
|
|
|
- name: ReSharper CLI InspectCode
|
2023-07-20 16:44:10 +03:00
|
|
|
uses: muno92/resharper_inspectcode@1.8.0
|
2022-12-09 14:47:11 +03:00
|
|
|
with:
|
2023-01-18 18:35:22 +03:00
|
|
|
solutionPath: ./Boyfriend.sln
|
2023-07-20 10:36:21 +03:00
|
|
|
ignoreIssueType: InvertIf, ConvertIfStatementToSwitchStatement
|
2023-07-20 23:41:02 +03:00
|
|
|
extensions: ReSharperPlugin.CognitiveComplexity
|
2022-12-09 14:47:11 +03:00
|
|
|
solutionWideAnalysis: true
|