PSScriptAnalyzer
PSScriptAnalyzer copied to clipboard
Download ScriptAnalyzer from PowerShellGallery
Before submitting a bug report: - Make sure you are able to repro it on the latest released version - Perform a quick search for existing issues to check if...
**Summary of the new feature** When you call `get-content file.json | convertfrom-json`, funny things happen when `file.json` contains a comment at the top of the file. Multiple places suggest that...
When I run through Invoke-ScriptAnalyzer[1], I find all of my expected violations and I see all of my custom rules running. However, when using the same settings file for Invoke-Formatter[2],...
**Summary of the new feature** ForEach-Object is great. However, by its name, it's similar to foreach. Using continue/break/return within ForEach-Object to foreach is much different and does something that most...
Compatibility profiles are currently very slow to start up and use opaque and duplicated configurations across rules. Instead: - They should be more modular so they can be more easily...
## PR Summary Removes `Path` as a mandatory parameter and sets the default to the current working directory. Resolves #1887 ## PR Checklist - [x] [PR has a meaningful title](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)...
### Prerequisites - [X] I have written a descriptive issue title. - [X] I have searched all [issues](https://github.com/PowerShell/vscode-powershell/issues?q=is%3Aissue) to ensure it has not already been reported. ### Summary If you...
## PR Summary ### Exception  ### Stack Trace  ## PR Checklist - [x] [PR has a meaningful title](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission) - Use the present tense and imperative mood when describing...
Currently PSScriptAnalyzer settings suffer from the following drawbacks: - They are opaque and truly documented only by the parsing logic - Misconfiguration usually fails silently, or at best issues an...
Integrating PSSA into CI pipelines may mean getting it to report output nicely. For example, Azure DevOps can understand, display and use the output of e.g. NUnit XML. ([link](https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-test-results?view=azure-devops&tabs=yaml)) I...