Documentation Index
Fetch the complete documentation index at: https://tally.wharflab.com/llms.txt
Use this file to discover all available pages before exploring further.
powershell/PSUseToExportFieldsInManifest is a PSScriptAnalyzer diagnostic emitted by tally for PowerShell snippets embedded in Dockerfiles.
| Property | Value |
|---|---|
| Severity | Warning |
| Category | PSScriptAnalyzer |
| Auto-fix | No |
Description
To improve the performance of module auto-discovery, module manifests should not use wildcards ('*') or null ($null) in the following entries:
AliasesToExportCmdletsToExportFunctionsToExportVariablesToExport
How
Use an explicit list in the entries.Example 1
Suppose there are no functions in your module to export. Then,Problematic code
Correct code
Example 2
Suppose there are only two functions in your module,Get-Foo and Set-Foo that you want to
export. Then,