Skip to content

Commit 4bca8a8

Browse files
author
kborle
committed
Fixes the documentation of AvoidInvokingEmptyMembers rule.
1 parent 0f48641 commit 4bca8a8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

RuleDocumentation/AvoidInvokingEmptyMembers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
##Description
66

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.
88

99

1010
##How to Fix

Rules/AvoidInvokingEmptyMembers.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@
2020

2121
namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules
2222
{
23+
// Rule name is inconsistent.
2324
/// <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>
2627
[Export(typeof(IScriptRule))]
2728
public class AvoidInvokingEmptyMembers : IScriptRule
2829
{
2930
/// <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.
3132
/// </summary>
3233
public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
3334
{

0 commit comments

Comments
 (0)