Skip to content
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

Better arity and return type checking for hooks #2135

Open
damianhxy opened this issue Mar 30, 2024 · 0 comments
Open

Better arity and return type checking for hooks #2135

damianhxy opened this issue Mar 30, 2024 · 0 comments

Comments

@damianhxy
Copy link
Member

Currently, there is insufficient validation that a user-defined assessment hook takes the correct number of arguments (arity) or that it returns the expected type.

This can lead to a difficult-to-recover situation, especially if it has to do with a hook like listOptions which is called every time the user views an assessment's landing page. (they would have to navigate directly to the edit page to reload the config file)

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

1 participant