PSScriptAnalyzer icon indicating copy to clipboard operation
PSScriptAnalyzer copied to clipboard

Download ScriptAnalyzer from PowerShellGallery

Results 201 PSScriptAnalyzer issues
Sort by recently updated
recently updated
newest added

I've noticed that `UseProcessBlockForPipelineCommand` rule produces warning notifications when pipeline behavior (`ValueFromPipeline`, `ValueFromPipelineByPropertyName`) is explicitly disabled. Steps to reproduce ------------------ ```PowerShell Function Get-Number { [CmdletBinding()] [OutputType([int])] Param( [Parameter(ValueFromPipeline=$false)] [int] $Number...

Issue - Bug
Area - Rules

Like pragma in c# can disable a warning for a line and then enable it again. As an example, I've got a few variables that are used to within Invoke-Expression's,...

Issue - Enhancement

I'd like to start the discussion about having an option of adjusting rule severity. I am not sure how PSSA community decides rule severity while onboarding any new rules. But...

Issue - Enhancement
Area - Configuration
Consider - 2.0

Steps to reproduce ------------------ ```PowerShell git clone https://github.com/PowerShell/PSScriptAnalyzer.git cd PSScriptAnalyzer ./Build.ps1. -Test Import-module ./build.psm1 Get-TestResults # Or Get-TestFailures ``` Expected behavior ----------------- This should, as per the documentation, load the...

Issue - Bug

Historically PSScriptAnalyzer has had a number of rules that have been deprecated & then removed from the available set of rules, one such example is AvoidUninitializedVariables I propose that we...

Up-for-Grabs
Area - Engine
API Proposal

### 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 I have...

Issue - Bug
Area - Formatter

Steps to reproduce ------------------ This reproduces about 25% of the time on my laptop. I think we may be exposing a gap in the fix for #1516, perhaps because we...

Issue - Bug

**Summary of the new feature** Consider the following script: ```powershell if ($true) { [String]$MyVar = "Blah" } [int[]]$MyInts = @(1,2,3) foreach ($MyVar in $MyInts) { Write-Host "This is my type...

Issue - New Rule
Up-for-Grabs
Area - Rules

For some cases the formatter is changing code where it cannot run. Rules that trigger this are: - `PSUseConsistentWhitespace.CheckParameter` when `$True` - `PSAvoidUsingCmdletAliases` when `$True` The source script triggering this...

Issue - New Rule
Area - Rules

Referring to StackOverflow questions along with: [How do I automaticaly create and use variable names?](https://stackoverflow.com/q/68827910/1701026). The cmdlets: * [`Get-Variable`](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-variable) * [`Set-Variable`](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/set-variable) * [`New-Variable`](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/new-variable) Could completely mislead a novice PowerShell scripter...

Issue - New Rule
Up-for-Grabs
Area - Rules