powershell/PSProvideCommentHelp is a PSScriptAnalyzer diagnostic emitted by tally for PowerShell snippets embedded in Dockerfiles.
tally disables this rule by default for Dockerfile
RUN snippets because a RUN executes
statements inline rather than defining cmdlets, parameters, or modules with external callers. Re-enable it with
include = ["powershell/PSProvideCommentHelp"] or by setting
rules.powershell.PSProvideCommentHelp.severity = "warning" in .tally.toml.Description
Comment based help should be provided for all PowerShell commands. This test only checks for the presence of comment based help and not on the validity or format. For assistance on comment based help, use the commandGet-Help about_comment_based_help or the
following articles:
Configuration
Parameters
-
Enable: bool (Default value is$true) Enable or disable the rule during ScriptAnalyzer invocation. -
ExportedOnly: bool (Default value is$true) If enabled, throw violation only on functions/cmdlets that are exported using theExport-ModuleMembercmdlet. -
BlockComment: bool (Default value is$true) If enabled, returns comment help in block comment style (<#...#>). Otherwise returns comment help in line comment style where each comment line starts with#. -
VSCodeSnippetCorrection: bool (Default value is$false) If enabled, returns comment help in vscode snippet format. -
Placement: string (Default value isbefore) Represents the position of comment help with respect to the function definition. Possible values are:before: means the help is placed before the function definitionbeginmeans the help is placed at the beginning of the function definition bodyendmeans the help is places the end of the function definition body
before.