File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2020
2121namespace Microsoft . Windows . PowerShell . ScriptAnalyzer . Generic
2222{
23+
24+
2325 public class Settings
2426 {
2527 private string filePath ;
@@ -31,7 +33,7 @@ public class Settings
3133 public string FilePath { get { return filePath ; } }
3234 public IEnumerable < string > IncludeRules { get { return includeRules ; } }
3335 public IEnumerable < string > ExcludeRules { get { return excludeRules ; } }
34- public IEnumerable < string > Severity { get { return severities ; } }
36+ public IEnumerable < string > Severities { get { return severities ; } }
3537 public Dictionary < string , Dictionary < string , object > > RuleArguments { get { return ruleArguments ; } }
3638
3739 public Settings ( object settings , Func < string , string > presetResolver )
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ public void UpdateSettings(Settings settings)
209209 throw new ArgumentNullException ( nameof ( settings ) ) ;
210210 }
211211
212- this . severity = ( ! settings . Severity . Any ( ) ) ? null : settings . Severity . ToArray ( ) ;
212+ this . severity = ( ! settings . Severities . Any ( ) ) ? null : settings . Severities . ToArray ( ) ;
213213 this . includeRule = ( ! settings . IncludeRules . Any ( ) ) ? null : settings . IncludeRules . ToArray ( ) ;
214214 this . excludeRule = ( ! settings . ExcludeRules . Any ( ) ) ? null : settings . ExcludeRules . ToArray ( ) ;
215215 if ( settings . RuleArguments != null )
You can’t perform that action at this time.
0 commit comments