Analyzer 1.4 is still noting positional parameter use in some circumstances even when none are used.
$ClientContext = New-Object Microsoft.SharePoint.Client.CleintContext($uri)
I would e...
Id #1231 | Release:
| Updated: Nov 3 at 3:29 PM by JBinMN | Created: Nov 3 at 3:29 PM by JBinMN
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:
| Updated: Nov 3 at 3:19 PM by JBinMN | Created: Sep 23 at 3:02 PM by stestino
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:
| Updated: Nov 3 at 3:19 PM by JBinMN | Created: Sep 23 at 2:53 PM by stestino
Lines that contain aliases aren't triggered for using positional parameters.
For instance, this only is flagged for the alias:
Id #1210 | Release:
| Updated: Sep 12 at 2:14 AM by MikeShepard | Created: Sep 12 at 2:13 AM by MikeShepard
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:
| Updated: Sep 20 at 10:49 PM by Martin77s | Created: Aug 14 at 3:44 PM by reidcs
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:
| Updated: Sep 12 at 1:39 AM by MikeShepard | Created: Jun 5 at 2:43 PM by mattmcnabb
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:
| Updated: Sep 20 at 10:49 PM by Martin77s | Created: May 30 at 3:28 PM by alexbchalmers
Change the tab during a analysis ( ~15 seconds) can return a wrong result (display).
Id #1133 | Release:
| Updated: Jul 2 at 1:22 AM by amokhtare | Created: May 21 at 9:12 AM by LaurentDardenne
Change the tab triggers an unnecessary analysis, although the source code is not changed.
Id #1130 | Release:
| Updated: Jun 25 at 5:24 AM by Jialiang | Created: May 17 at 10:35 AM by LaurentDardenne
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:
| Updated: May 21 at 1:22 PM by LaurentDardenne | Created: May 15 at 9:11 PM by lanatmwan