提交 041d144b 编写于 作者: A Alireza Habibi

Pass selected severity

上级 fd764f11
......@@ -103,11 +103,10 @@ private void AnalyzeNode(SyntaxNodeAnalysisContext context)
context.ReportDiagnostic(DiagnosticHelper.Create(
Descriptor,
location: expression.GetLocation(),
effectiveSeverity: ReportDiagnostic.Warn,
expression.GetLocation(),
styleOption.Notification.Severity,
additionalLocations: null,
properties: null,
messageArgs: null));
properties: null));
}
private static bool HasIllegalPatternVariables(AnalyzedPattern pattern, bool permitDesignations = true)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册