@@ -30,7 +30,7 @@ namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules
30
30
#if ! CORECLR
31
31
[ Export ( typeof ( IScriptRule ) ) ]
32
32
#endif
33
- public class ProvideCommentHelp : IScriptRule
33
+ public class ProvideCommentHelp : ConfigurableRule
34
34
{
35
35
36
36
/// <summary>
@@ -39,7 +39,7 @@ public class ProvideCommentHelp : IScriptRule
39
39
/// <param name="ast">The script's ast</param>
40
40
/// <param name="fileName">The name of the script</param>
41
41
/// <returns>A List of diagnostic results of this rule</returns>
42
- public IEnumerable < DiagnosticRecord > AnalyzeScript ( Ast ast , string fileName )
42
+ public override IEnumerable < DiagnosticRecord > AnalyzeScript ( Ast ast , string fileName )
43
43
{
44
44
if ( ast == null ) throw new ArgumentNullException ( Strings . NullAstErrorMessage ) ;
45
45
@@ -63,7 +63,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
63
63
/// GetName: Retrieves the name of this rule.
64
64
/// </summary>
65
65
/// <returns>The name of this rule</returns>
66
- public string GetName ( )
66
+ public override string GetName ( )
67
67
{
68
68
return string . Format ( CultureInfo . CurrentCulture , Strings . NameSpaceFormat , GetSourceName ( ) , Strings . ProvideCommentHelpName ) ;
69
69
}
@@ -72,7 +72,7 @@ public string GetName()
72
72
/// GetCommonName: Retrieves the common name of this rule.
73
73
/// </summary>
74
74
/// <returns>The common name of this rule</returns>
75
- public string GetCommonName ( )
75
+ public override string GetCommonName ( )
76
76
{
77
77
return string . Format ( CultureInfo . CurrentCulture , Strings . ProvideCommentHelpCommonName ) ;
78
78
}
@@ -81,15 +81,15 @@ public string GetCommonName()
81
81
/// GetDescription: Retrieves the description of this rule.
82
82
/// </summary>
83
83
/// <returns>The description of this rule</returns>
84
- public string GetDescription ( )
84
+ public override string GetDescription ( )
85
85
{
86
86
return string . Format ( CultureInfo . CurrentCulture , Strings . ProvideCommentHelpDescription ) ;
87
87
}
88
88
89
89
/// <summary>
90
90
/// Method: Retrieves the type of the rule: builtin, managed or module.
91
91
/// </summary>
92
- public SourceType GetSourceType ( )
92
+ public override SourceType GetSourceType ( )
93
93
{
94
94
return SourceType . Builtin ;
95
95
}
@@ -98,15 +98,15 @@ public SourceType GetSourceType()
98
98
/// GetSeverity: Retrieves the severity of the rule: error, warning of information.
99
99
/// </summary>
100
100
/// <returns></returns>
101
- public RuleSeverity GetSeverity ( )
101
+ public override RuleSeverity GetSeverity ( )
102
102
{
103
103
return RuleSeverity . Information ;
104
104
}
105
105
106
106
/// <summary>
107
107
/// Method: Retrieves the module/assembly name the rule is from.
108
108
/// </summary>
109
- public string GetSourceName ( )
109
+ public override string GetSourceName ( )
110
110
{
111
111
return string . Format ( CultureInfo . CurrentCulture , Strings . SourceName ) ;
112
112
}
0 commit comments