@@ -216,6 +216,7 @@ public CodeFormattingSettings(CodeFormattingSettings codeFormattingSettings)
216
216
217
217
public bool AddWhitespaceAroundPipe { get ; set ; }
218
218
public bool AutoCorrectAliases { get ; set ; }
219
+ public bool UseConstantStrings { get ; set ; }
219
220
public CodeFormattingPreset Preset { get ; set ; }
220
221
public bool OpenBraceOnSameLine { get ; set ; }
221
222
public bool NewLineAfterOpenBrace { get ; set ; }
@@ -315,6 +316,9 @@ private Hashtable GetCustomPSSASettingsHashtable(int tabSize, bool insertSpaces)
315
316
{ "PSUseCorrectCasing" , new Hashtable {
316
317
{ "Enable" , UseCorrectCasing }
317
318
} } ,
319
+ { "PSAvoidUsingDoubleQuotesForConstantString" , new Hashtable {
320
+ { "Enable" , UseConstantStrings }
321
+ } } ,
318
322
} ;
319
323
320
324
if ( AutoCorrectAliases )
@@ -331,7 +335,8 @@ private Hashtable GetCustomPSSASettingsHashtable(int tabSize, bool insertSpaces)
331
335
"PSPlaceOpenBrace" ,
332
336
"PSUseConsistentWhitespace" ,
333
337
"PSUseConsistentIndentation" ,
334
- "PSAlignAssignmentStatement"
338
+ "PSAlignAssignmentStatement" ,
339
+ "PSAvoidUsingDoubleQuotesForConstantString" ,
335
340
} } ,
336
341
{
337
342
"Rules" , ruleConfigurations
0 commit comments