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 20
20
21
21
namespace Microsoft . Windows . PowerShell . ScriptAnalyzer . Generic
22
22
{
23
+
24
+
23
25
public class Settings
24
26
{
25
27
private string filePath ;
@@ -31,7 +33,7 @@ public class Settings
31
33
public string FilePath { get { return filePath ; } }
32
34
public IEnumerable < string > IncludeRules { get { return includeRules ; } }
33
35
public IEnumerable < string > ExcludeRules { get { return excludeRules ; } }
34
- public IEnumerable < string > Severity { get { return severities ; } }
36
+ public IEnumerable < string > Severities { get { return severities ; } }
35
37
public Dictionary < string , Dictionary < string , object > > RuleArguments { get { return ruleArguments ; } }
36
38
37
39
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)
209
209
throw new ArgumentNullException ( nameof ( settings ) ) ;
210
210
}
211
211
212
- this . severity = ( ! settings . Severity . Any ( ) ) ? null : settings . Severity . ToArray ( ) ;
212
+ this . severity = ( ! settings . Severities . Any ( ) ) ? null : settings . Severities . ToArray ( ) ;
213
213
this . includeRule = ( ! settings . IncludeRules . Any ( ) ) ? null : settings . IncludeRules . ToArray ( ) ;
214
214
this . excludeRule = ( ! settings . ExcludeRules . Any ( ) ) ? null : settings . ExcludeRules . ToArray ( ) ;
215
215
if ( settings . RuleArguments != null )
You can’t perform that action at this time.
0 commit comments