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

Code style #2447

Merged
merged 2 commits into from
Feb 28, 2019
Merged

Code style #2447

merged 2 commits into from
Feb 28, 2019

Conversation

hannesa2
Copy link
Contributor

@hannesa2
Copy link
Contributor Author

  • First apply checked in codestyle
  • second it's the result of

image

@hannesa2
Copy link
Contributor Author

The earlier it will be merged, the less problems we will have

@davigonz
Copy link
Contributor

The earlier it will be merged, the less problems we will have

I agree with you but first we need to merge some 2.10 PRs that are pending from almost one month ago and waiting for code review. Can you check #2429, in which you requested some changes and I applied them?

<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<option name="LINE_SEPARATOR" value="&#10;" />
<option name="RIGHT_MARGIN" value="150" />
Copy link
Contributor

@davigonz davigonz Feb 22, 2019

Choose a reason for hiding this comment

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

150 is too much IMHO as well as Google Java Style Guide talks about 100 as column limit and we had 120 before so I would keep it in 120. I know we already changed this in the library but I will probably set it again to 120.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you will generate more line breaks, even though you see space right to line

Copy link
Contributor

@davigonz davigonz Feb 25, 2019

Choose a reason for hiding this comment

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

Generating more line breaks is not something bad most of the time, it makes the code more readable.

Copy link
Contributor

Choose a reason for hiding this comment

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

120 is fine when reading changes on GH PRs as well. Can you set it to 120 for now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I will do. But I wait, till a final merge can be done within minutes or hours, because I will start a final reformat after this. And to be honest, I've no motivation to do it again and again ...
Please have a look on how much conflicts I got after 12 days !

Copy link
Contributor Author

Choose a reason for hiding this comment

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

120 is fine when reading changes on GH PRs as well. Can you set it to 120 for now?

Here i apply it

@hannesa2
Copy link
Contributor Author

hannesa2 commented Feb 23, 2019

https://issuetracker.google.com/issues/78097962

Changed

This fix should be available in Android Studio 3.5 Canary 4 and all subsequent releases.

@davigonz
Copy link
Contributor

davigonz commented Feb 27, 2019

This will be the next PR to merge so you can start to solve the conflicts

@hannesa2
Copy link
Contributor Author

This will be the next PR to merge so you can start to solve the conflicts

Please merge it immediate

.idea/codeStyles/Project.xml Outdated Show resolved Hide resolved
@davigonz
Copy link
Contributor

Code approved, I have cloned the code, installed the apk and tried some basic operations just in case. @jesmrec it's up to you to perform extra checks, there's no new logic though

@jesmrec
Copy link
Collaborator

jesmrec commented Feb 28, 2019

Cleanup made in previous PR has made conflict against the current one. Needed to fix to pass a tiny QA stage. @hannesa2 please take a look and fix it (master version should be the correct version)

@hannesa2
Copy link
Contributor Author

Hey guys, I'm disappointed, probable I've an other understanding from "next".

image

You should merge it immediate.
If you don't do it, I've to rebase and rebase and rebase ....

@jesmrec
Copy link
Collaborator

jesmrec commented Feb 28, 2019

Your understanding of next is correct, no worries. Here, it was my fault so i ask my mates to review the other PR before this one, which is really the most important for the incoming release.

And i'm sorry, but we are not available 24/7 (and i guess you are not either, we do never ask you to rebase "immediatly"). You are already a member of the repository, so this continuous rebasing we are asking you are in the last days, and this will be a task to be done for anyone in the team... please patience. Your contributions are very welcome but, as you already know, we follow some practices and it is not in our plans to skip them.

Please, rebase the branch and i will be aware to check it and then (if there is no problem from QA), merging.

Edit: it is already rebased, so i will go for it

@jesmrec jesmrec self-requested a review February 28, 2019 17:16
@jesmrec
Copy link
Collaborator

jesmrec commented Feb 28, 2019

Approved... moving forward.

@jesmrec jesmrec merged commit f10456d into owncloud:master Feb 28, 2019
@hannesa2 hannesa2 deleted the CodeStyle branch February 28, 2019 19:22
@hannesa2
Copy link
Contributor Author

First of all: Thank you for merging !
Mayne "asap" would be the better word, I apologize . That is not a justification, but maybe an explanation. I've still a little bit my Eclipse branch in my head, where it needs more then a year for merge. And every other merge cause an new rebase on my side, that's why I'm so happy about the merge.

Anyway now we have all a pain with rebase, I did it with all my 7 remaining PRs and when you run into merge conflicts (you will do it for sure !) you should do a
git checkout .idea/codeStyles/codeStyleConfig.xml
before you do a
git rebase --continue

To be honest, I'm happy too, when most of my PRs are merged soon, to hopefully concentrate to more important tasks, instead of error searching PRs

@michaelstingl
Copy link
Contributor

michaelstingl commented Feb 28, 2019

@hannesa2 Thank you very much for your valuable contributions, your honest feedback and your patience! The projects evolves thanks to your effort, not only by the lines of code you add. 🌷

@hannesa2 hannesa2 mentioned this pull request Oct 4, 2019
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