Skip to content

[Bug]: appsourcecop.json is not created for testapps even if enableCodeAnalyzersOnTestApps=true #2267

Description

@ChrisBlankDe

AL-Go version

9.0

Describe the issue

When compiling a testapp with appsourcecop always an error is reported even if prefix is in settings:
Error: AS0054 The AppSourceCop configuration must specify one of the following properties: 'mandatorySuffix', 'mandatoryPrefix', or 'mandatoryAffixes'

Expected behavior

buildprocess should create appsourcecop.json also for test apps if enableCodeAnalyzersOnTestApps is set to true

Steps to reproduce

  1. create new repo
  2. create app
  3. create testapp
  4. configure affixes
  5. enable enableCodeAnalyzersOnTestApps

Additional context (logs, screenshots, etc.)

Full Build logs: logs_71079833457.zip
Repro Repo: https://github.com/ChrisBlankDe/ALGoAscOnTestApp
Tested with these settings:

{
  "$schema": "https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v9.0/.Modules/settings.schema.json",
  "country": "us",
  "appSourceCopMandatoryAffixes": [
    "PTE"
  ],
  "appFolders": [],
  "testFolders": [],
  "bcptTestFolders": [],
  "enableCodeAnalyzersOnTestApps": true,
  "useCompilerFolder": true,
  "doNotPublishApps": true
}

Metadata

Metadata

Assignees

Labels

Fix ReadyFix ReadybugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions