Skip to content

Commit

Permalink
Merge pull request #367 from StefanMaron/development
Browse files Browse the repository at this point in the history
Bugfix on rule 0026
  • Loading branch information
Arthurvdv authored Nov 26, 2023
2 parents 7252c60 + 08f9ebe commit 5f00f70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Design/Rule0026ToolTipPunctuation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ private void AnalyzeToolTipPunctuation(SyntaxNodeAnalysisContext ctx)
if (tooltipLabel.Value.ToString().Contains("\\"))
ctx.ReportDiagnostic(Diagnostic.Create(DiagnosticDescriptors.Rule0026ToolTipDoNotUseLineBreaks, tooltipProperty.GetLocation()));

if (((IControlSymbol)ctx.ContainingSymbol).ControlKind == ControlKind.Field)
if (!tooltipLabel.Value.ToString().StartsWith("Specifies"))
if (ctx.ContainingSymbol.Kind == SymbolKind.Control && ((IControlSymbol)ctx.ContainingSymbol).ControlKind == ControlKind.Field)
if (!tooltipLabel.Value.ToString().StartsWith("'Specifies"))
ctx.ReportDiagnostic(Diagnostic.Create(DiagnosticDescriptors.Rule0026ToolTipShouldStartWithSpecifies, tooltipProperty.GetLocation()));
}
}
Expand Down

0 comments on commit 5f00f70

Please sign in to comment.