You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rule request: Get-Content x | ConvertFrom-Json should suggest adding -raw for Get-content #1951
Thanks for the suggestion Jesse Houwing (@jessehouwing) this would make a good custom rule, or this seems like the kind of thing that could be good for a feedback provider. Typically we don't add things into script analyzer that are code optimizers or work arounds. I will mark this as up for grabs if you want to try opening a PR for it.
Activity
SydneyhSmith commentedon Dec 12, 2023
Thanks for the suggestion Jesse Houwing (@jessehouwing) this would make a good custom rule, or this seems like the kind of thing that could be good for a feedback provider. Typically we don't add things into script analyzer that are code optimizers or work arounds. I will mark this as up for grabs if you want to try opening a PR for it.
jessehouwing commentedon Dec 14, 2023
Sydney Smith (@SydneyhSmith) which existing rule would be a good basis to use to build this from?
bergmeister commentedon Feb 1, 2024
Jesse Houwing (@jessehouwing) See here for docs around custom rules: https://learn.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/create-custom-rule?view=ps-modules
I kind of agree that we shouldn't add too many cmdlet specific rules but if this one is common, we could consider it, Here is a good, similar example: #1857