Skip to content

Custom rule without comment based help throws error #463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AndySchneiderDev-zz opened this issue Mar 12, 2016 · 1 comment
Closed

Custom rule without comment based help throws error #463

AndySchneiderDev-zz opened this issue Mar 12, 2016 · 1 comment
Assignees
Milestone

Comments

@AndySchneiderDev-zz
Copy link

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

@kapilmb
Copy link

kapilmb commented Mar 12, 2016

This is a bug. Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants