PowerShell / PowerShell/PSScriptAnalyzer
Check automatic variable availability
Personne n'a encore pris cette issue.
- Langage dominant
- C#
- Étoiles
- 2.2k
- Forks
- 415
- Merge moyen
- 13 h 1 min
- PR mergées (30 j)
- 2
Description
In comparing the Preference Variables documentation for PowerShell 6.x and newer:
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-6
to the Preference Variables documentation for PowerShell 5.1:
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-5.1
it seems that a number of Preference Variables were removed/deprecated from PowerShell. I just ran into this problem unexpectedly on a script when testing it on PowerShell 6.x.
To help with this problem, I would like the PSUseCompatibleCommands feature of PSScriptAnalyzer to flag the usage of deprecated Preference Variables and state that they are not compatible with PowerShell 6.0 and newer (on any platform including Windows).
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par comparer la documentation liée de about_Preference_Variables pour PowerShell 6.x et 5.1, puis repérez la fonctionnalité PSUseCompatibleCommands dans PSScriptAnalyzer. La tâche est terminée lorsque l’utilisation de variables de préférence obsolètes est signalée comme étant incompatible avec PowerShell 6.0 et les versions ultérieures sur toutes les plateformes.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- csharp, powershell
- Domaine
- tooling
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100