Installs and manages the INNOCop code analyzer (BusinessCentral.InnoCop.dll) for Business Central AL development. The DLL is downloaded from the INNONAV Azure DevOps repository into the analyzer folder of the AL Language extension.
Requirements
Visual Studio Code 1.80.0 or higher
AL Language extension (ms-dynamics-smb.al)
Azure DevOps Personal Access Token for dev.azure.com/innonav with scope Code (Read)
What the extension does
When an AL workspace opens, it finds the AL Language extension's analyzer folder:
AL Language v18 and later: <al-extension>/bin/
older versions: <al-extension>/bin/Analyzers/ or <al-extension>/bin/win32/Analyzers/
If BusinessCentral.InnoCop.dll is missing there, it offers to download it.
It checks whether INNOCop is listed in al.codeAnalyzers and offers to add it.
When the AL Language extension is updated (new version folder), the check runs again.
It does not yet detect a newer DLL on the server if one is already installed. Use INNOCop: Download/Update Analyzer DLL to update manually.
Setup
Install the extension (or the INNONAV Dev ExtensionPack).
Run INNOCop: Set Personal Access Token and paste your PAT. It is stored in VS Code SecretStorage, not in settings.json.
Open an AL project and accept the download.
Make sure al.codeAnalyzers contains INNOCop (the extension offers to add it):