Skip to content

Custom rule without comment based help throws error #463

Closed
@AndySchneiderDev-zz

Description

@AndySchneiderDev-zz

If you have a custom rule like function Measure-MycustomThing {} and that function itself does not have comment based help, you will get an error that says "Invoke-ScriptAnalyzer : Cannot perform runtime binding on a null reference." If help will always be required for custom rules, then there should be better error handling or warnings when you try to run the custom rules.
withandwithouthelp

CustomRule.zip

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions