code change · fixAL Developmentofficial - Microsoftreviewed - checked by Opus

#2283 Fix issue 2267: appsourcecop.json is not created for testapps

Test and BCPT apps now generate appsourcecop.json files when code analyzers are enabled on test apps, preventing AS0054 compilation failures.

Pull request · merged into main on 2026-07-21 by spetersenms · 2 files (+6 -1), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • AppSourceCop analyzer was applied to test apps but configuration file wasn’t created
  • New-AppSourceCopJson is now called for test app folders in addition to regular app folders
  • Resolves AS0054 errors when enableCodeAnalyzersOnTestApps setting is used
  • Compilation action in AL-Go workflow now handles test apps consistently
  • Behaviour changes for users or extensions.

AL objects touched

  • Actions/CompileApps/Compile.ps1: modified, not in the BC? snapshot

Context

  • Systems: development, platform

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