dotnet / roslynator

Roslynator is a set of code analysis tools for C#, powered by Roslyn.

Home Page:https://josefpihrt.github.io/docs/roslynator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Upgrading CLI to 0.8.5 yields NullReferenceException

ArwynFr opened this issue · comments

Product and Version Used: Roslynator CLI 0.8.5

Steps to Reproduce: https://github.com/ArwynFr/dotnet-integration-testing/actions/runs/8696430966/job/23849664701?pr=28

Actual Behavior:

> /usr/bin/dotnet tool run roslynator analyze
---> System.NullReferenceException: Object reference not set to an instance of an object.
        at Roslynator.Diagnostics.CodeAnalyzer.<>c__DisplayClass13_0.<FilterDiagnostics>b__0(SyntaxTrivia f) in /_/src/Workspaces.Core/Diagnostics/CodeAnalyzer.cs:line 219

Expected Behavior:

> /usr/bin/dotnet tool run roslynator analyze
Analyzed solution 'xxxx' (in 4,7 s)

10 CS8019 Directive using non nécessaire

10 diagnostics found