-
-
Notifications
You must be signed in to change notification settings - Fork 473
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
Introducing deprecated code check in CI #3440
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## develop #3440 +/- ##
=============================================
- Coverage 48.68% 48.67% -0.01%
- Complexity 1011 1012 +1
=============================================
Files 285 285
Lines 10096 10095 -1
Branches 1348 1348
=============================================
- Hits 4915 4914 -1
Misses 4399 4399
Partials 782 782
☔ View full report in Codecov by Sentry. |
f656963
to
6e0c56b
Compare
1c788f6
to
7a3c6a0
Compare
@MohitMaliFtechiz I really wonder why the CI is green considering this branch is based on a version of gitv ain witj deprecated code!? |
@kelson42, We have configured the CI failure if deprecated code is found in the assemble CI and that is failing right now since we have some deprecated code in our project. /~https://github.com/kiwix/kiwix-android/actions/runs/5411219667/jobs/9833687025?pr=3440 |
@MohitMaliFtechiz I want the code to fail for any deprecation scenario you have fixed in the last 3 weeks. I don't want to see deprecation warning at compilation time. |
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.
@MohitMaliFtechiz After the discussion. We should go with Detekt custom rules for detecting the deprecated code. The current approach isn't viable for this issue.
7a3c6a0
to
d5671f9
Compare
@gouri-panda, I agree with you.
|
ee62794
to
6e3e607
Compare
@MohitMaliFtechiz We should fix the detekt problem before we merge that. Otherwise, code looks good. |
I guess we need to merge #3447 first?! |
…he issues in project, and refactored deprecated rules of detekt
…ompat21 file because we are handling the deprecated code within it. Therefore, we don't want Detekt to check this file for deprecations.
Fixes #3409
Since our project is a multi-module and previously we are using the wrong command of detekt, now we are using the updated command of detekt
./gradlew detektDebug detektCustomExampleDebug
to check all issues in both modules.detekt
will fail.pre-commit.sh
file.Compat21
file to handle the deprecated code, which does not have any alternative. we will manage that code in this file.KiwixService
file as we are usingSimpleXmlConverterFactory
and we do not have any alternative for this.