dotnet / roslynator

Roslynator is a set of code analysis tools for C#, powered by Roslyn.
https://josefpihrt.github.io/docs/roslynator
Other
3.1k stars 261 forks source link

AddExceptionToDocumentationCommentAnalyzer NRE #1556

Closed bdovaz closed 1 month ago

bdovaz commented 1 month ago

CSC : error AD0001: Analyzer 'Roslynator.CSharp.Analysis.AddExceptionToDocumentationCommentAnalyzer' threw an exception of type 'System.ArgumentNullException' with message 'Value cannot be null. (Parameter 'syntax')'

https://github.com/dotnet/roslynator/blob/ca8d20f47943e0ad6d3eb449b9e06f9e15b3ca51/src/Analyzers/CSharp/Analysis/AddExceptionToDocumentationCommentAnalyzer.cs#L14

I can't tell you exactly where the problem comes from because it doesn't tell me which script it is in....

In my case I run it from Unity in case it helps at all.

josefpihrt commented 1 month ago

duplicate of #1553