You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So maybe a rule can be written to check the bold part of test.psd1 "@{ ModuleVersion = '0.0.1'; RootModule = 'test'; NestedModules = @('test') }", to make sure the author is warned when a module like test.psd1 has itself as a nested module.
This feature ask is per discussion in PowerShell/PowerShell#6843 (comment).
Importing a ill-structured module could result in a circular nested module. For example, for the following code, you will see 'True' as the output.
So maybe a rule can be written to check the bold part of
test.psd1"@{ ModuleVersion = '0.0.1'; RootModule = 'test'; NestedModules = @('test') }", to make sure the author is warned when a module liketest.psd1has itself as a nested module.