We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Function members should not be reported for except class
except class
Functions members are reported for expect class
expect class
// _DetektTest.kt
expect class DetektTest { fun test(i: Int) }
actual
i
UnusedPrivateMember - [i] at ~/_DetektTest.kt:2:14
none
The text was updated successfully, but these errors were encountered:
I also see this behavior for formal parameters to an expected class constructor or expected function.
expect class Foo(x: Int, y:Int) expect fun foo(x: Int, y: Int)
Also on release 1.8.0 I get
style - 20min debt UnusedPrivateMember - [x] at .../Foo.kt:14:16 UnusedPrivateMember - [y] at .../Foo.kt:14:24 UnusedPrivateMember - [x] at .../Foo.kt:12:18 UnusedPrivateMember - [y] at .../Foo.kt:12:26
I can workaround via @Suppress("UnusedPrivateMember") on the expect declarations.
@Suppress("UnusedPrivateMember")
expect
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Expected Behavior
Function members should not be reported for
except class
Observed Behavior
Functions members are reported for
expect class
Steps to Reproduce
// _DetektTest.kt
actual
declarations that uses the parami
UnusedPrivateMember - [i] at ~/_DetektTest.kt:2:14
Context
none
Your Environment
The text was updated successfully, but these errors were encountered: