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
require(x != null)
requireNotNull(x)
When detekt comes across a require call that is just checking that a property is not null, suggest replacing with requireNotNull.
require
requireNotNull
#2336
And also:
detekt/detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/KtFileModifier.kt
Line 27 in 102c28d
The text was updated successfully, but these errors were encountered:
I believe this also applies to checkNotNull.
checkNotNull
Sorry, something went wrong.
I think this rule belongs to the style ruleset.
style
Successfully merging a pull request may close this issue.
Expected Behavior of the rule
When detekt comes across a
require
call that is just checking that a property is not null, suggest replacing withrequireNotNull
.Context
#2336
And also:
detekt/detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/KtFileModifier.kt
Line 27 in 102c28d
The text was updated successfully, but these errors were encountered: