#273 knowledge(style): SetFilter date operands as replacement values; product name via ProductName
Two new code style rules guide developers to use replacement values for date operands in SetFilter strings and to reference the product name via ProductName methods instead of hardcoded text in user-facing messages.
- 8files
- 7AL files
- 0objects
Pull request · merged into main on 2026-11-13 by MichaelDieringer · 8 files (+141 -1), 7 AL · feature · tier official · reviewed (checked by Opus)
What changed
- SetFilter rule prevents date text parsing issues by requiring date operands as replacement values like ‘%1|>=%2’ instead of ‘0D|>=%1’
- ProductName rule directs user-facing labels to use ProductName.Short()/Full()/Marketing() methods per Learn guidance
- SetFilter rule excludes user-entered filters, GetFilter/GetView round trips, and DateFormula fields
- ProductName rule excludes locked labels, telemetry, captions, tooltips, and deliberate legacy product references
AL objects touched
microsoft/knowledge/style/setfilter-date-operands-must-be-replacement-values.bad.al: added, not in the BC? snapshot yetmicrosoft/knowledge/style/setfilter-date-operands-must-be-replacement-values.good.al: added, not in the BC? snapshot yetmicrosoft/knowledge/style/setfilter-date-operands-must-be-replacement-values.md: added, not in the BC? snapshot yetmicrosoft/knowledge/style/use-productname-instead-of-hardcoded-product-name.bad.al: added, not in the BC? snapshot yetmicrosoft/knowledge/style/use-productname-instead-of-hardcoded-product-name.good.al: added, not in the BC? snapshot yetmicrosoft/knowledge/style/use-productname-instead-of-hardcoded-product-name.md: added, not in the BC? snapshot yetmicrosoft/skills/review/al-style-review.md: modified, not in the BC? snapshot
Context
- Systems: development
Source: metadata of a merged pull request in microsoft/BCQuality (bcquality): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).