-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Do not output helplink for custom check diags #10923
base: main
Are you sure you want to change the base?
Conversation
Alternatively we should allow for custom checks to register a help URL as part of their definitions/reports. We can decide separately to render that or not but the ability to link to external documentation is pretty fundamental to all modern diagnostic reporting experiences (see VS and VSCode problem displays for example). |
I was woried of security concerns. But now I can see there is a prior art for this: https://learn.microsoft.com/en-us/dotnet/api/microsoft.codeanalysis.diagnosticdescriptor.helplinkuri Lm try to imporove here |
What is the concern? That users would click on links that seem trustworthy because they come from MSBuild or something else? Perhaps we could wrap the link to something like |
Yes - exactly this Let's wait with wrapping till we see some initial usages of cusom buildchecks |
Context
Buildcheck is outputing helplinks as part of its diagnostics - e.g.:
However the link is missleading for custom checks - as we do not have any help for those
Changes Made
The help link is provided only for internaly reported diagnostics
Testing
Existing tests