-
-
Notifications
You must be signed in to change notification settings - Fork 758
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
Baseline incomplete if project located in "test" directory. #3728
Comments
Version 1.17.0-RC1 is sadly broken (see #3729). We're working on getting RC2 out soon. |
It happens with 1.16.0 thru the current snapshot. |
@cortinico Happens with 1.14.0 and 1.15.0 too. I've updated the issue accordingly. |
I see what's going on here. The |
Can you elaborate? Are you talking about the |
The problem is the base path. For example, if you store your project in We will have the same problem if your package is something similar as |
This issue is stale because it has been open 90 days with no activity. Please comment or this will be closed in 7 days. |
This issue is stale because it has been open 90 days with no activity. Please comment or this will be closed in 7 days. |
This is a prerequisite for fixing detekt#3728
This is a prerequisite for fixing detekt#3728
* Require basePath when setting up environment This is a prerequisite for fixing #3728 * Apply path filters based on relative paths when possible
* Require basePath when setting up environment This is a prerequisite for fixing detekt#3728 * Apply path filters based on relative paths when possible
Expected Behavior
baseline.xml is complete.
Observed Behavior
baseline.xml is incomplete.
Steps to Reproduce
No change, baseline.xml is correct.
baseline.xml is incorrect, incomplete.
Context
Took me forever to figure this one out. It made no sense. The baseline was incorrect on my machine and correct on any other machine I tried (CIs, etc.) until I realized that it was correct if I used another account on the same machine. After a thorough process of elimination (Gradle, Java, and Kotlin caches/configurations, etc.), the project's directory name turned out to be the culprit. Note that when the project is in a
test
directory, the detekt task will not fail even though the baseline is incomplete.Your Environment
The text was updated successfully, but these errors were encountered: