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
In IntelliJ, there is a quick fix to shorten the following code using the ?: operator:
?:
val abc = getAbc() if (abc == null) { // Comment return Xyz() }
into
val abc = getAbc() ?: // Comment return Xyz()
As this was how IntelliJ transformed it, it should be considered good style.
Instead klint then complains about this with chain-wrapping myfile.kt:130 Line must not end with "?:"
chain-wrapping myfile.kt:130 Line must not end with "?:"
See above
The text was updated successfully, but these errors were encountered:
Could reproduce it.
Sorry, something went wrong.
chain-wrapping
Successfully merging a pull request may close this issue.
Expected Behavior
In IntelliJ, there is a quick fix to shorten the following code using the
?:
operator:into
As this was how IntelliJ transformed it, it should be considered good style.
Observed Behavior
Instead klint then complains about this with
chain-wrapping myfile.kt:130 Line must not end with "?:"
Steps to Reproduce
See above
Your Environment
The text was updated successfully, but these errors were encountered: