Better error classification in Gradle Enterprise.#4586
Better error classification in Gradle Enterprise.#4586picklebento merged 4 commits intodetekt:mainfrom
Conversation
Use `Lint failed` instead of `Build failed` in exception Fixes detekt#4585
Codecov Report
@@ Coverage Diff @@
## main #4586 +/- ##
===========================================
+ Coverage 0 84.49% +84.49%
- Complexity 0 3335 +3335
===========================================
Files 0 481 +481
Lines 0 11147 +11147
Branches 0 2040 +2040
===========================================
+ Hits 0 9419 +9419
- Misses 0 697 +697
- Partials 0 1031 +1031
Continue to review full report at Codecov.
|
|
I'd change to "Analysis failed" as "Lint" is an overloaded term in the Android space |
|
@cortinico I've changed it. It seems that some of the tests that are failing are not picking up the new detekt artifact. Do you know why? |
@3flex can tell you more here. The issue is that our build setup is configured to don't use composite builds (I never recall why). So essentially you're testing against the latest released version of the Gradle plugin (as the failing tests are only those on Unless we switch to use the included build here: Line 14 in f15ce50 We should probably keep the test update as a draft PR and merge it once we're about to release. |
| } | ||
|
|
||
| private fun isBuildFailure(msg: String) = "Analysis failed with" in msg && "issues" in msg | ||
| private fun isBuildFailure(msg: String) = "Build failed with" in msg && "issues" in msg |
There was a problem hiding this comment.
@cortinico I had to revert this change to the Gradle plugin since the failure detection would break. Is the Gradle plugin published together with the detekt-core artifact?
|
Here is the follow up PR: #4588 |
Use
Lint failedinstead ofBuild failedin exceptionFixes #4585
Correctly classified error
Incorrectly classified error