-
-
Notifications
You must be signed in to change notification settings - Fork 771
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
Introduce UseAnyOrNoneInsteadOfFind rule #4247
Conversation
3094699
to
a1008d9
Compare
...yle/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/style/UseAnyOrNoneInsteadOfFindSpec.kt
Show resolved
Hide resolved
...yle/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/style/UseAnyOrNoneInsteadOfFindSpec.kt
Show resolved
Hide resolved
As always, thanks for the contributions :) |
Codecov Report
@@ Coverage Diff @@
## main #4247 +/- ##
============================================
- Coverage 84.32% 84.29% -0.04%
- Complexity 3243 3253 +10
============================================
Files 470 471 +1
Lines 10223 10261 +38
Branches 1787 1804 +17
============================================
+ Hits 8621 8649 +28
- Misses 663 664 +1
- Partials 939 948 +9
Continue to review full report at Codecov.
|
it("Reports collections.find != null") { | ||
val code = "val x = listOf(1, 2, 3).find { it == 4 } != null" | ||
val actual = subject.compileAndLintWithContext(env, code) | ||
Assertions.assertThat(actual).hasSize(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you import org.assertj.core.api.Assertions.assertThat
so you won't have to repeat it in all the test?
bc5c111
to
f1174c5
Compare
Fixes #4243