PowerShell / PowerShell/PSScriptAnalyzer
Code Formatting: Whitespacing ValidateSet
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
I've this validateset:

Sometimes I want it to have 2-3 per line so I start removing pressing delete button and I end up with what you see above. It would be nice if I could then press format and it would remove that unnessecary whitespace. While initially I thought it could be all automatic you said on twiter that it may quickly get out of control. I agree of course (even thou I would ant different styles to be available - like 3 validateset params per line) but at least maybe this can be addressed? It's just making sure there is only 1 white space per line (or defined value if it's needed).
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
Inizia individuando il formatter o il comando di formattazione in PSScriptAnalyzer e rivedendo le regole o i test esistenti relativi agli spazi bianchi. Chiarisci se l’obiettivo è uno stile unico per gli spazi bianchi o un numero configurabile di elementi per riga, quindi definisci i test che coprano l’esempio ValidateSet e l’output formattato previsto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- 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