[Feature request] Support configurable spacing within expression parentheses.

Abierto
#2,343 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp, powershell
Área
tooling

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C#
Estrellas
780
Forks
267
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de PowerShell/PowerShellEditorServices

Todos los issues de PowerShell/PowerShellEditorServices

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.