Configurable Options for Cmdlet Alias Rule

I suggest that the cmdlet alias rule be configurable. It is somewhat generally accepted to use aliases for the -Object cmdlets such as Where-Object and Select-Object, so options to configure cmdlet...

Id #1156 | Release: None | Updated: Fri at 5:15 PM by ChrisWarwick | Created: Jun 5 at 1:43 PM by mattmcnabb

Rule Suggestion: Prefer single quotes for non-expanding strings

Single quotes are preferred for string literals without expansion. It would be helpful for Script Analyzer to detect instances of strings and here-strings that are double quoted and do not encapsu...

Id #1135 | Release: None | Updated: Jul 2 at 12:22 AM by amokhtare | Created: May 30 at 2:28 PM by alexbchalmers

Change the tab during a analysis can return a wrong result

Change the tab during a analysis ( ~15 seconds) can return a wrong result (display). See attachment.

Id #1133 | Release: None | Updated: Jul 2 at 12:22 AM by amokhtare | Created: May 21 at 8:12 AM by LaurentDardenne

Change the tab triggers an unnecessary analysis

Change the tab triggers an unnecessary analysis, although the source code is not changed.

Id #1130 | Release: None | Updated: Jun 25 at 4:24 AM by Jialiang | Created: May 17 at 9:35 AM by LaurentDardenne

Correct the advice given for the Empty catch block rule

In suggesting a "possible solution" for the empty catch block problem, the solution offered is not a pattern that should be encouraged. The suggested fix would place random string data into the Pow...

Id #1129 | Release: None | Updated: May 21 at 12:22 PM by LaurentDardenne | Created: May 15 at 8:11 PM by lanatmwan

Error: positional parameter rule triggered by splatting

When using any kind of variable splatting the positional parameter rule is triggered, e.g.: $Parameters = @{Name = 'Spooler'} Get-Service @Parameters The rule should exclude values starting with @

Id #1125 | Release: None | Updated: May 21 at 6:43 PM by ajansveld | Created: May 10 at 7:05 PM by ajansveld

Error with positionnal parameter rule

Save this script : Import-LocalizedData -BindingVariable PsIonicMsgs -Filename PsIonicLocalizedData.psd1 -EA Stop Import-LocalizedData -Bind PsIonicMsgs -File PsIonicLocalizedData.psd1 -EA Stop Im...

Id #1120 | Release: None | Updated: May 10 at 12:20 AM by OneScript | Created: May 5 at 4:37 PM by LaurentDardenne

Error in CheckInPolicy.IsAliasUsed.VisitCommand

This code freeze the analyze (ISE) : Function ConvertPSDataCollection { param ( [System.Management.Automation.PSDataCollection[System.Management.Automation.ErrorRecord]] $PSEventJobError ) if...

Id #1119 | Release: None | Updated: May 21 at 7:25 AM by LaurentDardenne | Created: May 4 at 4:49 PM by LaurentDardenne

rule suggestion: Write-Host should be less used.

Please read Jeffery's post about this rule suggestion. Idea source: http://www.jsnover.com/blog/2013/12/07/write-host-considered-harmful/ Exception: Write-Host is useful when generating colorize ...

Id #1118 | Release: None | Updated: Jul 2 at 12:22 AM by amokhtare | Created: May 4 at 6:17 AM by GuHuaJun

rule suggestion: Comments that simply repeat what the code already states should not be added.

Comments that simply repeat what the code already states should not be added. It's not reasonable to add additional comments before following cmdlets. Write-Host, Write-Error, Write-Warning, Write...

Id #1117 | Release: None | Updated: May 4 at 6:08 AM by GuHuaJun | Created: May 4 at 6:08 AM by GuHuaJun