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
ForbiddenImport with reason fails with a ClassCastException #5103
Comments
Thank you for reporting this. |
Which version of detekt are you using? If it's not Oh, I just saw the PR that you link. That just implements the option to support that. But we need to implement it for each rule. It's on 1.22.0 where you could do that: #4909 |
Oh, I see... I guess I just misinterpreted the line in the release notes then, to me it sounded like this is something I can start using. :)
|
Thank you for reading the Release Notes - a lost Art 😉 and trying it out. |
Should we clarify this in the release notes somehow? |
We probably should have mentioned, that this only applies to rules that have been adapted to the new configuration option. |
I was trying out the example config for the new
reason
feature from #4611 (linked in the 1.21.0 release notes):It fails with the following:
It works fine with the old style:
The text was updated successfully, but these errors were encountered: