code change · refactorFinanceofficial - Microsoftreviewed - checked by Opus

#10559 Ruleset hardening: promote AL0659 and AL0685 to Error

AL0659 and AL0685 overrides are removed from base.ruleset.json, so both analyzer rules now inherit Error severity. The existing violations at 53 sites are suppressed with pragmas instead of renaming enums or changing schemas, because those fixes would be breaking.

Pull request · merged into main (BC30) on 2026-08-27 by JesperSchulz · 39 files (+106 -9), 37 AL · refactor · tier official · reviewed (checked by Opus)

What changed

  • Removing the AL0659 and AL0685 overrides from base.ruleset.json leaves 92 overrides, down from 94
  • Pragma pairs suppress 12 AL0659 sites (enum names longer than 30 characters) and 41 AL0685 sites (FlowField target longer than source)
  • Renaming enums or resizing fields would be breaking, so the violations are accepted in place
  • The ES enums SII Doc. Upload State Document Source and Type share the same first 30 characters, a real collision tracked as a follow-up
  • AL0685 sites carry a real truncation risk that is accepted rather than fixed

AL objects touched

Context

  • Work items: AB#640773
  • Labels: Ownership: Needs Review, Team: Other
  • Systems: finance, development, integration, platform, purchasing, warehouse, administration, inventory, sales

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).