@@ -28,7 +28,7 @@ namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules
2828#if ! CORECLR
2929 [ Export ( typeof ( IScriptRule ) ) ]
3030#endif
31- class UseSupportsShouldProcess : ConfigurableRule
31+ class UseSupportsShouldProcess : IScriptRule
3232 {
3333 private const char whitespace = ' ' ;
3434 private const int indentationSize = 4 ;
@@ -42,7 +42,7 @@ class UseSupportsShouldProcess : ConfigurableRule
4242 /// <param name="ast">AST to be analyzed. This should be non-null</param>
4343 /// <param name="fileName">Name of file that corresponds to the input AST.</param>
4444 /// <returns>A an enumerable type containing the violations</returns>
45- public override IEnumerable < DiagnosticRecord > AnalyzeScript ( Ast ast , string fileName )
45+ public IEnumerable < DiagnosticRecord > AnalyzeScript ( Ast ast , string fileName )
4646 {
4747 if ( ast == null )
4848 {
@@ -466,23 +466,23 @@ private string GetError(string functionName)
466466 /// <summary>
467467 /// Retrieves the common name of this rule.
468468 /// </summary>
469- public override string GetCommonName ( )
469+ public string GetCommonName ( )
470470 {
471471 return string . Format ( CultureInfo . CurrentCulture , Strings . UseSupportsShouldProcessCommonName ) ;
472472 }
473473
474474 /// <summary>
475475 /// Retrieves the description of this rule.
476476 /// </summary>
477- public override string GetDescription ( )
477+ public string GetDescription ( )
478478 {
479479 return string . Format ( CultureInfo . CurrentCulture , Strings . UseSupportsShouldProcessDescription ) ;
480480 }
481481
482482 /// <summary>
483483 /// Retrieves the name of this rule.
484484 /// </summary>
485- public override string GetName ( )
485+ public string GetName ( )
486486 {
487487 return string . Format (
488488 CultureInfo . CurrentCulture ,
@@ -494,23 +494,23 @@ public override string GetName()
494494 /// <summary>
495495 /// Retrieves the name of the module/assembly the rule is from.
496496 /// </summary>
497- public override string GetSourceName ( )
497+ public string GetSourceName ( )
498498 {
499499 return string . Format ( CultureInfo . CurrentCulture , Strings . SourceName ) ;
500500 }
501501
502502 /// <summary>
503503 /// Retrieves the type of the rule, Builtin, Managed or Module.
504504 /// </summary>
505- public override SourceType GetSourceType ( )
505+ public SourceType GetSourceType ( )
506506 {
507507 return SourceType . Builtin ;
508508 }
509509
510510 /// <summary>
511511 /// Retrieves the severity of the rule: error, warning or information.
512512 /// </summary>
513- public override RuleSeverity GetSeverity ( )
513+ public RuleSeverity GetSeverity ( )
514514 {
515515 return RuleSeverity . Warning ;
516516 }
0 commit comments