---
id: change/al-go/2323
type: change
title: "#2323 Fix enableCodeAnalyzersOnTestApps not disabling customCodeCops in workspace compilation"
summary: Workspace compilation now correctly disables custom code analyzers when enableCodeAnalyzersOnTestApps is false, preventing custom analyzer diagnostics from running against test apps.
tier: official
language: en
tags:
  - fix
  - main
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:12:03.158Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 1150d93046c5e705683771a8d33c51f7f9b7d06f
evidence:
  - kind: code
    url: https://github.com/microsoft/AL-Go/pull/2323
    title: "microsoft/AL-Go#2323: Fix enableCodeAnalyzersOnTestApps not disabling customCodeCops in workspace compilation"
    date: "2026-07-21"
    commit: 1150d93046c5e705683771a8d33c51f7f9b7d06f
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 2323
repo: microsoft/AL-Go
source_id: al-go-prs
url: https://github.com/microsoft/AL-Go/pull/2323
kind: pr
base_branch: main
major: null
merged_at: "2026-07-21T07:11:46Z"
author: aholstrup1
author_type: User
community_contribution: false
labels: []
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 4
  additions: 144
  deletions: 8
  al: 2
apps: []
objects_touched: []
objects_unjoined:
  - path: Actions/.Modules/CompileFromWorkspace.psm1
    status: modified
    reason: not-in-snapshot
  - path: Actions/CompileApps/Compile.ps1
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues:
  - 2319
work_items: []
systems:
  - development
  - platform
quote: null
joined_against:
  major: null
  commit: null
---

# #2323 Fix enableCodeAnalyzersOnTestApps not disabling customCodeCops in workspace compilation

> Workspace compilation now correctly disables custom code analyzers when enableCodeAnalyzersOnTestApps is false, preventing custom analyzer diagnostics from running against test apps.

[Pull request](https://github.com/microsoft/AL-Go/pull/2323) · merged into `main` on 2026-07-21 by aholstrup1 · 4 files (+144 -8), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- CustomAnalyzers is now cleared along with Analyzers for test and BCPT test folders when enableCodeAnalyzersOnTestApps is false
- Before, only the built-in cops were disabled and custom analyzer DLLs kept reporting on test apps
- Workspace compilation now matches the documented setting and the classic Run-AlPipeline flow
- Regular apps compile before the test branches, so clearing the shared build parameters there does not affect normal app compilation
- Regression tests check that --customanalyzers is emitted only when custom analyzers are supplied
- Behaviour changes for users or extensions.

## AL objects touched

- `Actions/.Modules/CompileFromWorkspace.psm1`: modified, not in the BC? snapshot
- `Actions/CompileApps/Compile.ps1`: modified, not in the BC? snapshot

## Context

- Fixes: [#2319 [Bug]: `enableCodeAnalyzersOnTestApps: false` does not disable `customCodeCops` for test/BCPT apps under Workspace Compilation (`CompileApps` action)](https://github.com/microsoft/AL-Go/issues/2319) (closed)
- 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).
