Skip to content

Type resolution in generator module #3628

Answered by cortinico
marschwar asked this question in Q&A
Discussion options

You must be logged in to vote

My preference would be to avoid type resolution here. Any ideas?

That's not possible, unless we restrict how default value are defined.
What I think it's further complicated to address here is that defaultValue could potentially be a function, so you actually need to execute code in order to compute the default value. I'm unsure we want to go this way.

If I actually do need it, what would I have to do in order to create a BindingContext?

You should populate the classpath parameter correctly. See https://detekt.github.io/detekt/type-resolution.html

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by schalkms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants