-
-
Notifications
You must be signed in to change notification settings - Fork 783
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
Assert end source locations #5116
Conversation
@@ -6,7 +6,7 @@ import io.gitlab.arturbosch.detekt.api.TextLocation | |||
import org.assertj.core.api.AbstractAssert | |||
import org.assertj.core.api.AbstractListAssert | |||
import org.assertj.core.util.CheckReturnValue | |||
import java.util.Objects | |||
import java.util.* |
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.
I did not even realize that we allow wildcard imports. I would have expected that some check would have failed
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.
our current configuration:
WildcardImport:
active: true
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
excludeImports:
- 'java.util.*'
This case hit both excludes. I'm going to change this for us.
78ddade
to
6245074
Compare
Codecov Report
@@ Coverage Diff @@
## main #5116 +/- ##
=========================================
Coverage 84.91% 84.91%
Complexity 3614 3614
=========================================
Files 502 502
Lines 11887 11887
Branches 2237 2237
=========================================
Hits 10094 10094
Misses 690 690
Partials 1103 1103 Continue to review full report at Codecov.
|
* Add option to assert end source locations * Don't use hasSourceLocations * Don't use hasSourceLocation
I need this refactor to finish: #5058
The idea behind this PR is in the comment: https://github.com/detekt/detekt/pull/5058/files#r927045468
All the changes made outside
FindingsAssertions.kt
where done using the "fix deprecation" feature.