Skip to content
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

Cleanup project #2750

Merged
merged 20 commits into from
Dec 18, 2019
Merged

Cleanup project #2750

merged 20 commits into from
Dec 18, 2019

Conversation

abelgardep
Copy link
Contributor

@abelgardep abelgardep commented Dec 4, 2019

Lint warnings and errors cleanup.

Continuation of #2736
CC @hannesa2
To improve code quality, I recommend a lint check on every pull request.
Currently it's obvious disabled, because on master it fails ! Please enable lint check on CI

With this pull request you see in root the lint report lint-app-report.html
image

Btw, a lot of them should be solved later on, and after that step, you should prevent them in the future by severity="error" in lint.xml

@abelgardep abelgardep changed the base branch from new_arch/modularization_tests_cleanup to new_arch/modularization December 5, 2019 07:11
@davigonz davigonz force-pushed the new_arch/modularization branch 2 times, most recently from 7f2f4ef to a316cff Compare December 5, 2019 09:07
@jesmrec
Copy link
Collaborator

jesmrec commented Dec 10, 2019

Smoke test needed.

@jesmrec jesmrec added this to the 2.15 milestone Dec 10, 2019
@davigonz davigonz force-pushed the new_arch/modularization branch 2 times, most recently from 07d1ce5 to 456d2c5 Compare December 10, 2019 17:46
@abelgardep abelgardep mentioned this pull request Dec 11, 2019
@abelgardep abelgardep changed the base branch from new_arch/modularization to master December 11, 2019 11:42
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<issue id="WrongConstant" severity="ignore" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need to ignore these issues, haven't you fixed them?

intent.putExtra(Intent.EXTRA_SUBJECT, feedback);

intent.setData(Uri.parse(feedbackMail));
intent.setDataAndType(Uri.parse(feedbackMail), "text/plain");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move "text/plain" as a constant to somewhere. It's also used in FileOperationsHelper.java and other parts of the project.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that it could be an issue itself. Moving just this string to a constant looks weird since there are files like MimetypeIconUtil where every mime is hardcoded, and we will mix hardcoded and constants. I think it is better to standarize and move everything together, don't you think?

Copy link
Contributor

@davigonz davigonz Dec 17, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, could you create an issue with the details? Thanks

@davigonz
Copy link
Contributor

@abelgardep just a couple of comments

@davigonz
Copy link
Contributor

I've noticed that when long pressing a file, the Select all and select inverse options appear as text instead of the share icon.

@davigonz
Copy link
Contributor

@jesmrec code approved, ready to test

@jesmrec
Copy link
Collaborator

jesmrec commented Dec 18, 2019

QA:

This is not a not a product feature, so i executed some tests to assure everything works:

  • Login basic auth
  • Login OAuth2
  • Upload content
  • Download content
  • Basic ops: create folder, delete, move, copy, rename, av. offline, open with
  • Create public link
  • Share with other user
  • Camera uploads

As developers' suggestion, the passcode lock layout was also checked, with succesfully result.

Additionally, i ran lint to check the code status after the clean up with the following result:

> Task :owncloudApp:lint
Ran lint on variant debug: 520 issues found
Ran lint on variant release: 515 issues found
Wrote HTML report to file:..../lint-app-report.html

> Task :owncloudData:lint
Ran lint on variant release: 0 issues found
Ran lint on variant debug: 0 issues found

> Task :owncloudDomain:lint
Ran lint on variant release: 0 issues found
Ran lint on variant debug: 0 issues found

> Task :owncloudTestUtil:lint
Ran lint on variant release: 1 issues found
Ran lint on variant debug: 1 issues found
Wrote HTML report to file:.../lint-results.html
Wrote XML report to file:..../lint-results.xml

> Task :owncloud-android-library:owncloudComLibrary:lint
Ran lint on variant release: 1 issues found
Ran lint on variant debug: 1 issues found
Wrote HTML report to file:.../lint-results.html
Wrote XML report to file:..../lint-results.xml

a huge number of issues detected in owncloudApp module, that should be fixed if we want to move the lint checks to CI, as suggested in the first message.

Is it a good idea to open a new issue in which this issues are fixed? several issues? @abelgardep @davigonz

@abelgardep
Copy link
Contributor Author

If you open the lint-app-report.html, you will see that most of those warnings are related with deprecated logs. I created an issue some days ago (#2757). I consider that we should move it forward as soon as possible.

@jesmrec
Copy link
Collaborator

jesmrec commented Dec 18, 2019

Then, from my side we can now move forward.

@davigonz davigonz merged commit 5ba41d5 into master Dec 18, 2019
@davigonz davigonz deleted the cleanup_project branch December 18, 2019 12:32
@jesmrec jesmrec removed the Sprint label Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants