-
-
Notifications
You must be signed in to change notification settings - Fork 757
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
Stricter paths #7147
Stricter paths #7147
Conversation
require(absolutePath.isAbsolute) { "absolutePath should be absolute" } | ||
require(basePath?.isAbsolute != false) { "basePath should be absolute" } | ||
require(relativePath?.isAbsolute != true) { "relativePath should not be absolute" } |
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.
Main change
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7147 +/- ##
============================================
- Coverage 84.70% 84.67% -0.03%
Complexity 3983 3983
============================================
Files 578 578
Lines 12151 12153 +2
Branches 2495 2498 +3
============================================
- Hits 10292 10291 -1
Misses 625 625
- Partials 1234 1237 +3 ☔ View full report in Codecov by Sentry. |
2314f98
to
983b626
Compare
983b626
to
62d1b03
Compare
62d1b03
to
a04f6a0
Compare
a04f6a0
to
3bc7ef7
Compare
3bc7ef7
to
1bba878
Compare
1bba878
to
464dc78
Compare
464dc78
to
4ff6014
Compare
4ff6014
to
88b5759
Compare
88b5759
to
1e652e7
Compare
1e652e7
to
bcdb678
Compare
Still working on make Windows tests happy :'(. My main problem right now is that The main problem is that I don't have windows so I need to use CI to debug the problems :'( |
3da2dcc
to
e39ba24
Compare
...-core/src/test/kotlin/io/gitlab/arturbosch/detekt/core/reporting/console/IssuesReportSpec.kt
Fixed
Show fixed
Hide fixed
...-core/src/test/kotlin/io/gitlab/arturbosch/detekt/core/reporting/console/IssuesReportSpec.kt
Fixed
Show fixed
Hide fixed
...-core/src/test/kotlin/io/gitlab/arturbosch/detekt/core/reporting/console/IssuesReportSpec.kt
Fixed
Show fixed
Hide fixed
...-core/src/test/kotlin/io/gitlab/arturbosch/detekt/core/reporting/console/IssuesReportSpec.kt
Fixed
Show fixed
Hide fixed
...-core/src/test/kotlin/io/gitlab/arturbosch/detekt/core/reporting/console/IssuesReportSpec.kt
Fixed
Show fixed
Hide fixed
...-core/src/test/kotlin/io/gitlab/arturbosch/detekt/core/reporting/console/IssuesReportSpec.kt
Fixed
Show fixed
Hide fixed
...-core/src/test/kotlin/io/gitlab/arturbosch/detekt/core/reporting/console/IssuesReportSpec.kt
Fixed
Show fixed
Hide fixed
...-core/src/test/kotlin/io/gitlab/arturbosch/detekt/core/reporting/console/IssuesReportSpec.kt
Fixed
Show fixed
Hide fixed
...-core/src/test/kotlin/io/gitlab/arturbosch/detekt/core/reporting/console/IssuesReportSpec.kt
Fixed
Show fixed
Hide fixed
e39ba24
to
1b67b62
Compare
1b67b62
to
f04afbb
Compare
f04afbb
to
061410c
Compare
061410c
to
89762f2
Compare
89762f2
to
e9f2b9c
Compare
e9f2b9c
to
a73350f
Compare
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.
Looks good to me 👍 although I'm not really expert on paths so you probably want to wait anothe review.
Also there are conflicts to resolve
|
||
assertThat(filePath.toString()) | ||
.isEqualTo("FilePath(absolutePath=${ps}a${ps}b${ps}c, basePath=null, relativePath=null)") |
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.
nice :)
a73350f
to
23381a1
Compare
Part of #7140
This PR makes our core more strict to how the paths should look like. I know that
KtFiles
will be removed. but that's the reason I'm doing this now. Our tests were a bit "loose" on the paths. With this change our tests are a better representation of what happen in the real life and can spot real bugs once we start to refactor this part of the code to removeKtFiles
.