diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 722a253..838f1aa 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -9,7 +9,7 @@ ] }, "fsharp-analyzers": { - "version": "0.37.2", + "version": "0.41.0", "commands": [ "fsharp-analyzers" ] diff --git a/.github/workflows/dotnet.yaml b/.github/workflows/dotnet.yaml index a279394..98b97e2 100644 --- a/.github/workflows/dotnet.yaml +++ b/.github/workflows/dotnet.yaml @@ -60,10 +60,10 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 - - name: Setup .NET SDK v8.0.x + - name: Setup .NET SDK v10.0.x uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 with: - dotnet-version: 8.0.x + dotnet-version: 10.0.x - name: Prepare .NET tools run: dotnet tool restore - name: Prepare analyzers @@ -71,7 +71,7 @@ jobs: - name: Restore dependencies run: dotnet restore ./HeterogeneousCollections/HeterogeneousCollections.fsproj - name: Run analyzers - run: dotnet fsharp-analyzers --project ./HeterogeneousCollections/HeterogeneousCollections.fsproj --analyzers-path ./.analyzerpackages/g-research.fsharp.analyzers/*/ --verbosity detailed --report ./analysis.sarif --treat-as-error GRA-STRING-001 GRA-STRING-002 GRA-STRING-003 GRA-UNIONCASE-001 GRA-INTERPOLATED-001 GRA-TYPE-ANNOTATE-001 GRA-VIRTUALCALL-001 GRA-IMMUTABLECOLLECTIONEQUALITY-001 GRA-JSONOPTS-001 GRA-LOGARGFUNCFULLAPP-001 GRA-DISPBEFOREASYNC-001 --exclude-analyzers PartialAppAnalyzer + run: dotnet fsharp-analyzers --project ./HeterogeneousCollections/HeterogeneousCollections.fsproj --analyzers-path ./.analyzerpackages/g-research.fsharp.analyzers/*/ --verbosity detailed --report ./analysis.sarif --treat-as-error "GRA-*" - name: Upload SARIF file uses: github/codeql-action/upload-sarif@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9 with: diff --git a/analyzers/analyzers.fsproj b/analyzers/analyzers.fsproj index d20788d..933191e 100644 --- a/analyzers/analyzers.fsproj +++ b/analyzers/analyzers.fsproj @@ -11,8 +11,7 @@ - + -