[Feature request] Support configurable spacing within expression parentheses.

オープン
#2,343 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp, powershell
領域
tooling

調査の方向性

The request is for a configurable SpaceWithinParentheses option on the PSUseConsistentWhitespace rule, modeled on the C-style formatter option the issue cites. Start by finding that rule and its existing options, and compare how the C-style option handles spacing inside parentheses. Done means the option is configurable and produces ( $x + 1 ) or ($x + 1) as set, with tests covering both values. The issue itself proposes no design, so confirm the scope with maintainers before writing code.

索引モデルが issue の本文から書いたものです。

説明

Issue-Enhancement Needs: Triage
Prerequisites
  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been requested.
Summary

Configurable spacing within expression parentheses.

Example:
( $x + 1 ) vs ($x + 1)

It would ideally be exposed through PSUseConsistentWhitespace as a configurable option. This would be like the C-style formatter option: SpaceWithinParentheses = true

I've always used this style but it's become a problem with automatic code generation.

Proposed Design

I think this could be borrowed from the C formatter.

主要言語
C#
スター
780
フォーク
267
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PowerShell/PowerShellEditorServices のほかの issue

PowerShell/PowerShellEditorServices の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。