-
Notifications
You must be signed in to change notification settings - Fork 393
Feature request: Analyze code for PSEdition and OS compatibility #605
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
Comments
On Thu, Aug 25, 2016 at 4:38 PM +0200, "Warren F." <[email protected]mailto:[email protected]> wrote: Hi! Apologies if this is a duplicate. Let's pretend I have a module. Or function. Or script. I want it to work on PowerShell Core in OS X. Current state: I have two options that seem readily available:
Desired state:
Ideally, on top of identifying incompatible code, provide suggested alternatives or references in the rules 'Message'. Why:
Cheers! You are receiving this because you are subscribed to this thread. |
+1 on this as I really don't want to go through all my old code and look at won't work. Perhaps there is something already out there for the comparisons of Full fat .NET to what is included in .NET Core that could be simply wrapped into a PSScriptAnalyzer |
On Thu, Aug 25, 2016 at 4:48 PM +0200, "Ryan Yates" <[email protected]mailto:[email protected]> wrote: +1 on this as I really don't want to go through all my old code and look at won't work. Perhaps there is something already out there for the comparisons of Full fat .NET to what is included in .NET Core that could be simply wrapped into a PSScriptAnalyzer You are receiving this because you commented. |
One Rule that we should look at implementing will have to coincide with whatever is decided in the Weak Aliases RFC - PowerShell/PowerShell-RFC#16 My Suggestion would be to Create a Rule for curl & wget aliases and bump the severity to Error to help with possible auto scanning existing script repositories |
Hi!
Apologies if this is a duplicate.
Let's pretend I have a module. Or function. Or script. I want it to work on PowerShell Core in OS X.
Current state: I have two options that seem readily available:
Desired state:
Ideally, on top of identifying incompatible code, provide suggested alternatives or references in the rules 'Message'.
Why:
Edit: Credit to @joeyaiello who mentioned there might be plans to do this via PSScriptAnalyzer, just wanted to highlight that this will be a very valuable solution for the community (IMHO) .
Cheers!
The text was updated successfully, but these errors were encountered: