-
Notifications
You must be signed in to change notification settings - Fork 389
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
Show documentation on custom rules #1106
Comments
We would need to either abuse an existing property in |
It would be great to have this customization. I have been looking for customizing this url. |
It’s fairly trivial to extend, I’ll try to find the time |
Awesome, go for it. Please note that at the moment, only the Windows build images work (a PR is open to fix the Ubuntu build), therefore it is normal that 1 of the 4 build matrix elements will be read resulting in the build appearing to be red, please ignore that for moment |
Perfect! Looking forward on this |
If someone can brief me about the changes we expect, I can give it a try. At least the main script that needs a change. |
Sorry, I'll pick this up today |
Cc @rkeithhill Just FYI as we'll need also a PRs in PSES and the vscode extension |
So I have a working solution for this, however, it might not be for everyone unfortunately. As @bergmeister mentioned, in order to make this change, it involves making changes to PSES and VSCode, which in turn would probably then call for an extension to the diagnostic records here to include a custom URL, in an ideal world this is how I would it (however, I just don't have the time), In the interest of time I opted for the solution below, maybe this will be of some use to someone else.
Now, VSCode goes to this GitHub for all PSScriptAnalyzer rules and our Wiki for internal rules! I know this is a little, hacky but fairly simple to implement at build time for us (we use chocolatey). Hope this helps anyone that might be interested. |
Nice! |
This 'working solution' is a really bad hack and I strongly recommend against using it. The |
Someone make the change to |
@bergmeister If this is similar to #1144 ? Then I can submit a PR |
Yes, you'd add a property to |
Its a year since this has been commented. Has anyone started this, seems a quick thing. |
Hi, is someone working on this issue. I have also the same scenario, where I need to customize the documentation link. |
@Shruti-MS No, but you could follow the above guidance and we'd be happy to accept a PR |
I have noticed the new support for Show documentation for pops up as a suggested correction. However, when using custom rules this uses this github repo and results in a 404 (e.g. https://github.com/PowerShell/PSScriptAnalyzer/blob/development/RuleDocumentation/Measure-PascalCase.md). Is it possible to use a custom url for this feature? This would allow us to direct the documentation at our own internal spaces.
The text was updated successfully, but these errors were encountered: