| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR adds inline PowerShell commands to the README.md file to provide users with a quick installation method for PSScriptAnalyzer directly from the documentation, complementing the existing link to the detailed installation guide.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
|
|
||
| ```powershell | ||
| Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | ||
| Install-Module -Name PSScriptAnalyzer |
There was a problem hiding this comment.
The -Scope parameter should be specified for Install-Module to clarify where the module will be installed. Without it, PowerShell will attempt to install to AllUsers scope which requires elevated permissions, potentially causing the command to fail for non-admin users.
Consider updating to:
Install-Module -Name PSScriptAnalyzer -Scope CurrentUserThis allows users to install the module without requiring administrator privileges.
| Install-Module -Name PSScriptAnalyzer | |
| Install-Module -Name PSScriptAnalyzer -Scope CurrentUser |
Sorry, something went wrong.
There was a problem hiding this comment.
Andy Jordan (@andyleejordan) We should use PSResourceGet commands.
Sorry, something went wrong.
There was a problem hiding this comment.
Hopefully the linked instructions can be updated too.
Sorry, something went wrong.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Sean Wheeler (@sdwheeler) is this reasonable or should be defaulting to Install-PSResource? |
Sorry, something went wrong.
There was a problem hiding this comment.
Update it to Install-PSResource please!
Sorry, something went wrong.
I think having Install-Module and Install-PSResource is best as not everyone is on latest PowerShellGet, especially Windows PowerShell users |
Sorry, something went wrong.
There was a problem hiding this comment.
I'll defer to Christoph Bergmeister (@bergmeister) and agree since "easy" instructions means "just works"
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
PR Checklist