File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -362,7 +362,7 @@ private static bool IsBuiltinSettingPreset(object settingPreset)
362362 var preset = settingPreset as string ;
363363 if ( preset != null )
364364 {
365- return Helper . GetBuiltinSettingPresets ( ) . Contains ( preset , StringComparer . OrdinalIgnoreCase ) ;
365+ return Helper . GetSettingPresets ( ) . Contains ( preset , StringComparer . OrdinalIgnoreCase ) ;
366366 }
367367
368368 return false ;
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ public static string GetShippedSettingsDirectory()
207207 /// Looks for powershell data files (*.psd1) in the PSScriptAnalyzer module settings directory
208208 /// and returns the names of the files without extension
209209 /// </summary>
210- internal static IEnumerable < string > GetBuiltinSettingPresets ( )
210+ public static IEnumerable < string > GetSettingPresets ( )
211211 {
212212 var settingsPath = GetShippedSettingsDirectory ( ) ;
213213 if ( settingsPath != null )
@@ -224,12 +224,12 @@ internal static IEnumerable<string> GetBuiltinSettingPresets()
224224 ///
225225 /// If the corresponding preset file is not found, the method returns null.
226226 /// </summary>
227- internal static string GetSettingPresetFilePath ( string settingPreset )
227+ public static string GetSettingPresetFilePath ( string settingPreset )
228228 {
229229 var settingsPath = GetShippedSettingsDirectory ( ) ;
230230 if ( settingsPath != null )
231231 {
232- if ( GetBuiltinSettingPresets ( ) . Contains ( settingPreset , StringComparer . OrdinalIgnoreCase ) )
232+ if ( GetSettingPresets ( ) . Contains ( settingPreset , StringComparer . OrdinalIgnoreCase ) )
233233 {
234234 return System . IO . Path . Combine ( settingsPath , settingPreset + ".psd1" ) ;
235235 }
You can’t perform that action at this time.
0 commit comments