-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
customCodeCops for BusinessCentral.LinterCop does not seem to work #788
Comments
Your setting looks correct. |
Sorry for the delay. The full logs: |
I'm experiencing the same problem. Here's my log, starting from the beginning of the Run Pipeline step, and ending after listing the parameters. As you can see, I've provided a URL for the |
Is there any progress with this? We're starting to have problems with checks that succeed when they should fail. |
We have been caught up with BC 24 issues, so unfortunately nothing yet. |
@freddydk any timeline on this? It's a bit annoying our custom codecops are not executed. |
The reason for this is, that despite the documentation saying so, CustomCodeCops cannot be a URL today. When that has merged, you would need to add "vsixFile": "latest" to your settings file as well as the Lintercop from @StefanMaron requires the latest AL Language Exrension. You can see a test run with the Lintercop here: https://github.com/BusinessCentralApps/buildorder/actions/runs/8679462223 |
I have added the setting
customCodeCops
to myAL-Go-Settings.json
:(similar to Stefan Maron is using here)
On a seperate branch, I've removed a caption from an action, so the BCLinterCop givess the warning.
If I commit this and create a PR, the pipeline triggers.
But it doesn't seem to use the BCLinterCop.
.\alc.exe /project:"c:\sources\App" /packagecachepath:"c:\sources\.packages" /out:"c:\sources\.output\ESC bv_Calculation_21.0.2147483647.0.app" /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.CodeCop.dll /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.AppSourceCop.dll /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.UICop.dll /ruleset:c:\shared\.github\.vscode\module.ruleset.json /enableexternalrulesets /SourceRepositoryUrl:"https://github.com/ESCbv/TestALGOAppSource2" /SourceCommit:"709c6ede636df90d80624c325e73a840e1d25ca9" /BuildBy:"AL-Go for GitHub,v4.0" /BuildUrl:"https://github.com/ESCbv/TestALGOAppSource2/actions/runs/6625078712" /assemblyprobingpaths:"C:\Program Files\dotnet\shared","C:\ProgramData\BcContainerHelper\Extensions\bcCalculation6625078712\.netPackages\Service"
Other warnings are given
What am I missing to make customCodeCops work?
Thanks in advance.
The text was updated successfully, but these errors were encountered: