Skip to content

Code style - #2447

Merged
jesmrec merged 2 commits into
owncloud:masterfrom
hannesa2:CodeStyle
Feb 28, 2019
Merged

jesmrec merged 2 commits into
owncloud:masterfrom
hannesa2:CodeStyle

Conversation

@hannesa2

Copy link
Copy Markdown
Contributor

@hannesa2

Copy link
Copy Markdown
Contributor Author
  • First apply checked in codestyle
  • second it's the result of

image

@davigonz davigonz added this to the 2.11.0 milestone Feb 14, 2019
@hannesa2

Copy link
Copy Markdown
Contributor Author

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

@davigonz

Copy link
Copy Markdown
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?

@davigonz davigonz modified the milestones: 2.11.0, 2.10.0 Feb 22, 2019
Comment thread .idea/codeStyles/Project.xml Outdated
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<option name="LINE_SEPARATOR" value="&#10;" />
<option name="RIGHT_MARGIN" value="150" />

@davigonz davigonz Feb 22, 2019 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

@davigonz davigonz Feb 25, 2019 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

hannesa2 commented Feb 23, 2019 •

Copy link
Copy Markdown
Contributor Author

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

Changed

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

@davigonz

davigonz commented Feb 27, 2019 •

Copy link
Copy Markdown
Contributor

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

@hannesa2

Copy link
Copy Markdown
Contributor Author

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

Please merge it immediate

Comment thread .idea/codeStyles/Project.xml Resolved
@davigonz

Copy link
Copy Markdown
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

jesmrec commented Feb 28, 2019

Copy link
Copy Markdown
Member

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
Copy Markdown
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

jesmrec commented Feb 28, 2019 •

Copy link
Copy Markdown
Member

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

jesmrec commented Feb 28, 2019

Copy link
Copy Markdown
Member

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
Copy Markdown
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

michaelstingl commented Feb 28, 2019 •

Copy link
Copy Markdown
Contributor

@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