@@ -177,7 +177,12 @@ internal enum PipelineIndentationStyle
177177 /// <summary>
178178 /// Do not increase indentation level at all after pipeline.
179179 /// </summary>
180- NoIndentation
180+ NoIndentation ,
181+
182+ /// <summary>
183+ /// Do not change pipeline indentation level at all.
184+ /// </summary>
185+ None ,
181186 }
182187
183188 internal class CodeFormattingSettings
@@ -206,18 +211,20 @@ public CodeFormattingSettings(CodeFormattingSettings codeFormattingSettings)
206211 }
207212 }
208213
214+ public bool AddWhitespaceAroundPipe { get ; set ; }
209215 public bool AutoCorrectAliases { get ; set ; }
210216 public CodeFormattingPreset Preset { get ; set ; }
211217 public bool OpenBraceOnSameLine { get ; set ; }
212218 public bool NewLineAfterOpenBrace { get ; set ; }
213219 public bool NewLineAfterCloseBrace { get ; set ; }
214220 public PipelineIndentationStyle PipelineIndentationStyle { get ; set ; }
221+ public bool TrimWhitespaceAroundPipe { get ; set ; }
215222 public bool WhitespaceBeforeOpenBrace { get ; set ; }
216223 public bool WhitespaceBeforeOpenParen { get ; set ; }
217224 public bool WhitespaceAroundOperator { get ; set ; }
218225 public bool WhitespaceAfterSeparator { get ; set ; }
226+ public bool WhitespaceBetweenParameters { get ; set ; }
219227 public bool WhitespaceInsideBrace { get ; set ; }
220- public bool WhitespaceAroundPipe { get ; set ; }
221228 public bool IgnoreOneLineBlock { get ; set ; }
222229 public bool AlignPropertyValuePairs { get ; set ; }
223230 public bool UseCorrectCasing { get ; set ; }
@@ -294,7 +301,9 @@ private Hashtable GetCustomPSSASettingsHashtable(int tabSize, bool insertSpaces)
294301 { "CheckOperator" , WhitespaceAroundOperator } ,
295302 { "CheckSeparator" , WhitespaceAfterSeparator } ,
296303 { "CheckInnerBrace" , WhitespaceInsideBrace } ,
297- { "CheckPipe" , WhitespaceAroundPipe } ,
304+ { "CheckParameter" , WhitespaceBetweenParameters } ,
305+ { "CheckPipe" , AddWhitespaceAroundPipe } ,
306+ { "CheckPipeForRedundantWhitespace" , TrimWhitespaceAroundPipe } ,
298307 } } ,
299308 { "PSAlignAssignmentStatement" , new Hashtable {
300309 { "Enable" , true } ,
0 commit comments