INNOCop VS Code Extension
This VS Code extension provides automatic download and management of the INNOCop code analyzer for Business Central AL development.
Features
- Auto-download: Automatically downloads the INNOCop analyzer DLL on startup
- Auto-update: Checks for updates and downloads new versions automatically
- Easy configuration: Configure analyzer settings through VS Code settings
Requirements
- Visual Studio Code 1.80.0 or higher
- AL Language extension (ms-dynamics-smb.al)
Extension Settings
This extension contributes the following settings:
| Setting |
Default |
Description |
innocop.autoDownload |
true |
Automatically download and update the INNOCop analyzer DLL |
innocop.downloadPreReleases |
false |
Download pre-release versions of the analyzer |
innocop.analyzerPath |
"" |
Custom path to the INNOCop analyzer DLL |
innocop.enableOnStartup |
true |
Enable INNOCop analyzer on VS Code startup |
innocop.repositoryUrl |
https://github.com/INNONAV/INNOCop |
GitHub repository URL for downloading the analyzer |
Commands
- INNOCop: Download/Update Analyzer DLL - Manually download or update the analyzer
- INNOCop: Show Analyzer Version - Display current analyzer version information
- INNOCop: Open Rules Documentation - Open the rules documentation in a browser
Usage
- Install this extension
- Open an AL project
- The extension will automatically download the INNOCop analyzer if not present
- Enable code analysis in your AL settings:
{
"al.enableCodeAnalysis": true,
"al.codeAnalyzers": [
"${analyzerFolder}CodeCop",
"${analyzerFolder}INNOCopAnalyzer.dll"
]
}
Building from Source
npm install
npm run compile
npx vsce package
License
MIT
| |