You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning AD0001 Analyzer 'SonarAnalyzer.Rules.CSharp.StringFormatValidator' threw an exception of type 'System.InvalidCastException' with message 'Unable to cast object of type 'System.UInt64' to type 'System.String'.'. ConsoleApp3 1 Active Analyzer 'SonarAnalyzer.Rules.CSharp.StringFormatValidator' threw the following exception:
'Exception occurred with following context:
Compilation: ConsoleApp3
SyntaxTree: C:\Download\ConsoleApp3\ConsoleApp3\Program.cs
SyntaxNode: Console.WriteLine(ulong.MaxValue ... [InvocationExpressionSyntax]@[239..272) (12,12)-(12,45)
System.InvalidCastException: Unable to cast object of type 'System.UInt64' to type 'System.String'.
at SonarAnalyzer.Rules.CSharp.StringFormatValidator.CheckForFormatStringIssues(SyntaxNodeAnalysisContext analysisContext)
at SonarAnalyzer.Helpers.DiagnosticAnalyzerContextHelper.<>c__DisplayClass0_0`1.<RegisterSyntaxNodeActionInNonGenerated>b__0(SyntaxNodeAnalysisContext c)
at SonarAnalyzer.Helpers.SonarAnalysisContext.<>c__DisplayClass12_0`1.<RegisterSyntaxNodeAction>b__0(SyntaxNodeAnalysisContext c)
at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.<>c__DisplayClass42_1`1.<ExecuteSyntaxNodeAction>b__1()
at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock(DiagnosticAnalyzer analyzer, Action analyze, Nullable`1 info)
The text was updated successfully, but these errors were encountered:
RSPEC-S2275
Throws the following error
The text was updated successfully, but these errors were encountered: