File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
##Description
6
6
7
- Invoking non-constant members would cause potential bugs. Please double check the syntax to make sure members invoked are non-constant .
7
+ Invoking non-constant members would cause potential bugs. Please double check the syntax to make sure that invoked members are constants .
8
8
9
9
10
10
##How to Fix
Original file line number Diff line number Diff line change 20
20
21
21
namespace Microsoft . Windows . PowerShell . ScriptAnalyzer . BuiltinRules
22
22
{
23
+ // Rule name is inconsistent.
23
24
/// <summary>
24
- /// AvoidAlias: Check if cmdlet alias is used .
25
- /// </summary>
25
+ /// AvoidInvokingEmptyMembers: Analyzes the script to check if any non-constant members have been invoked .
26
+ /// </summary>
26
27
[ Export ( typeof ( IScriptRule ) ) ]
27
28
public class AvoidInvokingEmptyMembers : IScriptRule
28
29
{
29
30
/// <summary>
30
- /// AnalyzeScript: Analyze the script to check if any empty members has been invoked.
31
+ /// AnalyzeScript: Analyzes the script to check if any non-constant members have been invoked.
31
32
/// </summary>
32
33
public IEnumerable < DiagnosticRecord > AnalyzeScript ( Ast ast , string fileName )
33
34
{
You can’t perform that action at this time.
0 commit comments