File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -362,7 +362,7 @@ private static bool IsBuiltinSettingPreset(object settingPreset)
362
362
var preset = settingPreset as string ;
363
363
if ( preset != null )
364
364
{
365
- return Helper . GetBuiltinSettingPresets ( ) . Contains ( preset , StringComparer . OrdinalIgnoreCase ) ;
365
+ return Helper . GetSettingPresets ( ) . Contains ( preset , StringComparer . OrdinalIgnoreCase ) ;
366
366
}
367
367
368
368
return false ;
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ public static string GetShippedSettingsDirectory()
207
207
/// Looks for powershell data files (*.psd1) in the PSScriptAnalyzer module settings directory
208
208
/// and returns the names of the files without extension
209
209
/// </summary>
210
- internal static IEnumerable < string > GetBuiltinSettingPresets ( )
210
+ public static IEnumerable < string > GetSettingPresets ( )
211
211
{
212
212
var settingsPath = GetShippedSettingsDirectory ( ) ;
213
213
if ( settingsPath != null )
@@ -224,12 +224,12 @@ internal static IEnumerable<string> GetBuiltinSettingPresets()
224
224
///
225
225
/// If the corresponding preset file is not found, the method returns null.
226
226
/// </summary>
227
- internal static string GetSettingPresetFilePath ( string settingPreset )
227
+ public static string GetSettingPresetFilePath ( string settingPreset )
228
228
{
229
229
var settingsPath = GetShippedSettingsDirectory ( ) ;
230
230
if ( settingsPath != null )
231
231
{
232
- if ( GetBuiltinSettingPresets ( ) . Contains ( settingPreset , StringComparer . OrdinalIgnoreCase ) )
232
+ if ( GetSettingPresets ( ) . Contains ( settingPreset , StringComparer . OrdinalIgnoreCase ) )
233
233
{
234
234
return System . IO . Path . Combine ( settingsPath , settingPreset + ".psd1" ) ;
235
235
}
You can’t perform that action at this time.
0 commit comments