PSScriptAnalyzer

img_5cc0645e15f23

24 Apr: The curious case of $null should be on the left side of equality comparisons PSScriptAnalyzer

If you’re using VSCode with Powershell extension, you probably got used to PSScriptAnalyzer giving you all kind of tips on optimizing things. It makes your code better. Chris Bergmeister does a great job working on it. One of the tips PSScriptAnalyzer gives you when you use $null on the right side of the comparison.