PowerShell / PowerShell/PSScriptAnalyzer
PipelineIndentation: when not set to NoIndentation: does not cater for case where line continuation token is used instead of pipeline (->missing indentation)
Nessuno ha ancora preso questa issue.
- Lingua principale
- C#
- Stelle
- 2.2k
- Fork
- 414
- Merge medio
- 13h 1m
- PR unite (30g)
- 2
Descrizione
foo `
-bar |
baz
foo `
# comment
-bar |
baz
Expected behavior
Calling Invoke-Formatter on it (PipelineIndentation is not NoIndentation, which is not the default), then baz should be indented twice (once because of the previous backtick and once because of the rule itself. It only gets indented once
foo `
# comment
-bar |
baz
Actual behavior
foo `
# comment
-bar |
baz
If an unexpected error was thrown then please report the full error details using e.g. $error[0] | Select-Object *
Environment data
PSSA 1.18,1 or latest version of master
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
Riproduci gli esempi con Invoke-Formatter usando PipelineIndentation invece di NoIndentation, inclusi la continuazione con backtick e il commento. Traccia il percorso di formattazione di PipelineIndentation e verifica che baz riceva entrambi i livelli di indentazione, in accordo con l’output previsto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp, powershell
- Ambito
- tooling
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100