Migration from LinterCop #317
Replies: 3 comments 1 reply
|
Hi @ernestasju, There's no built-in migration script or VS Code command at the moment, but the full diagnostic mapping is published here: My suggestion: feed that page to your AI tool of choice (GitHub Copilot, Claude, Codex, ...) and ask it to generate a migration script that does a search-and-replace across your .ruleset.json files and #pragma warning disable/restore directives in your AL code. A few edge cases to be aware of (also documented on that page):
|
|
I crafted "small" conversion PowerShell script: |
|
During the migration of one of my apps, I ended up making some changes to the script (with the help of AI). This enhanced version of the LinterCop Migration Script is on GitHub here: https://github.com/finnpedersenkazes/LinterCop-Migration-Script. I have added a -WhatIf`` option.
|
Uh oh!
There was an error while loading. Please reload this page.
Hi, I was wondering if there are some tools/scripts to automate migration from LinterCop?
I see two tasks. The first one is updating rulesets to new IDs - maybe there is some mapping JSON already? We have some URL based custom rulesets too.
The second one is updating
#pragma warning ...directives in AL code.IMHO, this could be done almost entirely by the VS Code extension, but I did not notice any command like that when I looked at it.
Thanks.
All reactions