@@ -177,7 +177,12 @@ internal enum PipelineIndentationStyle
177
177
/// <summary>
178
178
/// Do not increase indentation level at all after pipeline.
179
179
/// </summary>
180
- NoIndentation
180
+ NoIndentation ,
181
+
182
+ /// <summary>
183
+ /// Do not change pipeline indentation level at all.
184
+ /// </summary>
185
+ None ,
181
186
}
182
187
183
188
internal class CodeFormattingSettings
@@ -206,18 +211,20 @@ public CodeFormattingSettings(CodeFormattingSettings codeFormattingSettings)
206
211
}
207
212
}
208
213
214
+ public bool AddWhitespaceAroundPipe { get ; set ; }
209
215
public bool AutoCorrectAliases { get ; set ; }
210
216
public CodeFormattingPreset Preset { get ; set ; }
211
217
public bool OpenBraceOnSameLine { get ; set ; }
212
218
public bool NewLineAfterOpenBrace { get ; set ; }
213
219
public bool NewLineAfterCloseBrace { get ; set ; }
214
220
public PipelineIndentationStyle PipelineIndentationStyle { get ; set ; }
221
+ public bool TrimWhitespaceAroundPipe { get ; set ; }
215
222
public bool WhitespaceBeforeOpenBrace { get ; set ; }
216
223
public bool WhitespaceBeforeOpenParen { get ; set ; }
217
224
public bool WhitespaceAroundOperator { get ; set ; }
218
225
public bool WhitespaceAfterSeparator { get ; set ; }
226
+ public bool WhitespaceBetweenParameters { get ; set ; }
219
227
public bool WhitespaceInsideBrace { get ; set ; }
220
- public bool WhitespaceAroundPipe { get ; set ; }
221
228
public bool IgnoreOneLineBlock { get ; set ; }
222
229
public bool AlignPropertyValuePairs { get ; set ; }
223
230
public bool UseCorrectCasing { get ; set ; }
@@ -294,7 +301,9 @@ private Hashtable GetCustomPSSASettingsHashtable(int tabSize, bool insertSpaces)
294
301
{ "CheckOperator" , WhitespaceAroundOperator } ,
295
302
{ "CheckSeparator" , WhitespaceAfterSeparator } ,
296
303
{ "CheckInnerBrace" , WhitespaceInsideBrace } ,
297
- { "CheckPipe" , WhitespaceAroundPipe } ,
304
+ { "CheckParameter" , WhitespaceBetweenParameters } ,
305
+ { "CheckPipe" , AddWhitespaceAroundPipe } ,
306
+ { "CheckPipeForRedundantWhitespace" , TrimWhitespaceAroundPipe } ,
298
307
} } ,
299
308
{ "PSAlignAssignmentStatement" , new Hashtable {
300
309
{ "Enable" , true } ,
0 commit comments