PowerShell / PowerShell/PSScriptAnalyzer
[Formatter] Indent Right(hand side) `CommandExpressionAst`
未關閉
還沒有人認領這個 Issue。
- 主要語言
- C#
- 星號
- 2.2k
- 分支
- 414
- 平均合併
- 13 小時 1 分鐘
- 30 天內合併 PR
- 2
描述
Indent (a multiline) righthand side (list) expression assignment.
Meaning, for a (multiline) Statements.Right CommandExpressionAst (as apposed to Ast's that have already their own embedded indention, as e.g. a PipelineAst), I would like the righthand side to (optionally?) increase the indent:
Wrong way (?)
$List =
'One',
'Two',
'Three'
Correct way
$List =
'One',
'Two',
'Three'
Wrong way (?)
$4 = # or any lengthy variable name aka dot notation
2 + 2
Correct way
$4 = # or any lengthy variable name aka dot notation
2 + 2
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
未指定檔案或測試;首先找出 formatter 對 CommandExpressionAst 的處理方式,並與此 issue 中的多行範例進行比較。當多行右側清單或運算式指派獲得所要求的增加縮排,且不變更已自行管理縮排的 AST 結構時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp, powershell
- 領域
- tooling
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100