PowerShell / PowerShell/PSScriptAnalyzer
"Reserved prefixes" rule
Nessuno ha ancora preso questa issue.
- Lingua principale
- C#
- Stelle
- 2.2k
- Fork
- 414
- Merge medio
- 13h 1m
- PR unite (30g)
- 2
Descrizione
Summary of the new feature
A while ago, the PowerShell extension had an issue open on it because
Get-Help Get-AdUser -Online
and
Get-Help Get-AdFoo -Online
(note, Foo is used to make it obvious and I forget what the actual noun was)
Were not giving the same result...
As it turned out, its because Get-AdFoo was from a module from the Gallery... Where Get-AdUser comes from the inbox Active Directory module.
Personally, I think it's quite dodgy to overload such a crucial prefix like Ad and we should warn users that certain prefixes are used already in very critical modules.
Proposed technical implementation details (optional)
A rule that gives a warning that says "you probably shouldn't use this prefix because it's already used by X"
Or something to that effect.
What is the latest version of PSScriptAnalyzer at the point of writing
1.18.0
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Non sono stati identificati file di implementazione né test. Inizia individuando i punti di ingresso esistenti delle regole di PSScriptAnalyzer ed esaminando come vengono rappresentati i nomi dei comandi e i moduli PowerShell; poi chiarisci l’origine del prefisso riservato, il comportamento degli avvisi e i criteri di accettazione prima di implementare o testare la regola.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp, powershell
- Ambito
- tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100