Skip to main content
powershell/PSAvoidInvokingEmptyMembers is a PSScriptAnalyzer diagnostic emitted by tally for PowerShell snippets embedded in Dockerfiles.

Description

Invoking non-constant members can cause potential bugs. Please double-check the syntax to make sure that invoked members are constants.

How

Provide the requested members for a given type or class.

Examples

Problematic code

Correct code

Source

This rule documentation is adapted from Microsoft’s PSScriptAnalyzer documentation for AvoidInvokingEmptyMembers, licensed under CC BY 4.0.