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:
|
|
|
|
push:
|
|
|
|
branches: [ "master" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "master" ]
|
|
|
|
|
|
|
|
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-09 16:32:14 +03:00
|
|
|
uses: muno92/resharper_inspectcode@1.7.1
|
2022-12-09 14:47:11 +03:00
|
|
|
with:
|
2023-01-18 18:35:22 +03:00
|
|
|
solutionPath: ./Boyfriend.sln
|
2023-07-09 16:32:14 +03:00
|
|
|
ignoreIssueType: InvertIf, ConvertIfStatementToReturnStatement, ConvertIfStatementToSwitchStatement
|
2022-12-09 14:47:11 +03:00
|
|
|
solutionWideAnalysis: true
|