Skip to content

Conversation

yutingc
Copy link
Contributor

@yutingc yutingc commented Apr 1, 2015

Skip ProvideCommentHelp warnings for DSC functions
get/set/test-targetresource

Skip ProvideCommentHelp warnings for DSC functions
get/set/test-targetresource
@@ -47,10 +47,17 @@ public override AstVisitAction VisitFunctionDefinition(FunctionDefinitionAst fun
return AstVisitAction.SkipChildren;
}

if (funcAst.GetHelpContent() == null)
if (!string.Equals(funcAst.Name, "Get-TargetResource", StringComparison.OrdinalIgnoreCase) && !string.Equals(funcAst.Name, "Set-TargetResource", StringComparison.OrdinalIgnoreCase) &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you check with the DSC team if they support aliasing these functions? (Set-Alias).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hemant said DSC engine does not understand aliases so checks for Get/Set/Test should be fine.

@raghushantha
Copy link
Member

changes looks good.

yutingc added a commit that referenced this pull request Apr 2, 2015
Skip ProvideCommentHelp for DSC functions
@yutingc yutingc merged commit 10ba224 into PowerShell:master Apr 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants