-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PSScriptAnalyser misreporting #1432
Comments
I believe the "trailing whitespace" issue is a problem PSSA needs to fix. The $null warnings are probably correct - see https://github.com/PowerShell/PSScriptAnalyzer/blob/development/RuleDocumentation/PossibleIncorrectComparisonWithNull.md However, you can exclude both of these rules by adding a
Then in the
In general, PSSA the default rules are going to rub some set of folks the wrong way. That's why I recommend folks use this settings file to configure PSSA with the rules they find valuable. |
For any issues with PSScriptAnalyzer, you should report them here |
Going to close this issue in favour of #1429. |
Issue Type: Bug
If statements comparing with $null aren't evaluated properly
if($Credential.UserName -ne $null) labelled as null on wrong side of operator
Several instances of "trailing whitespace' yet none exists
Extension version: 1.8.1
VS Code version: Code 1.25.0 (0f080e5267e829de46638128001aeb7ca2d6d50e, 2018-07-05T13:11:11.248Z)
OS version: Windows_NT ia32 10.0.14393
System Info
flash_3d: unavailable_software
flash_stage3d: unavailable_software
flash_stage3d_baseline: unavailable_software
gpu_compositing: unavailable_software
multiple_raster_threads: disabled_off
native_gpu_memory_buffers: disabled_software
rasterization: unavailable_software
video_decode: unavailable_software
video_encode: unavailable_software
vpx_decode: unavailable_software
webgl: unavailable_off
webgl2: unavailable_off
The text was updated successfully, but these errors were encountered: