Flag lines that contain Write-Host.

Using Write-Host is almost never correct. Script Analyzer should flag on Write-Host usage and give us the ability to toggle the rule off and on.

Id #1218 | Release: None | Updated: Sep 23 at 2:02 PM by stestino | Created: Sep 23 at 2:02 PM by stestino

Flag lines that contain backticks.

Using backticks ( ` ) for line continuation is almost never correct. Script Analyzer should flag on line continuation backtick usage and give us the ability to toggle the rule off and on.

Id #1217 | Release: None | Updated: Sep 23 at 2:14 PM by stestino | Created: Sep 23 at 1:53 PM by stestino

Error with positional parameters and aliases

Lines that contain aliases aren't triggered for using positional parameters. For instance, this only is flagged for the alias: function test{ dir c:\$a }

Id #1210 | Release: None | Updated: Sep 12 at 1:14 AM by MikeShepard | Created: Sep 12 at 1:13 AM by MikeShepard

Rule Suggestion: Warning on using existing name for functions

Highlight any functions that use the same name as a built-in function or alias. Use of such functions is dangerous as it would override the behaviour of any existing code that expect the functiona...

Id #1194 | Release: None | Updated: Sep 20 at 9:49 PM by Martin77s | Created: Aug 14 at 2:44 PM by reidcs

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: Sep 12 at 12:39 AM by MikeShepard | 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: Sep 20 at 9:49 PM by Martin77s | 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