Bug 449736 - [Tests] Solve whitespace issues in org.eclipse.ui.tests plug-ins
Summary: [Tests] Solve whitespace issues in org.eclipse.ui.tests plug-ins
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.5   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 4.5 M6   Edit
Assignee: Lars Vogel CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday
Depends on:
Blocks:
 
Reported: 2014-11-03 06:59 EST by Lars Vogel CLA
Modified: 2015-03-16 13:28 EDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2014-11-03 06:59:21 EST
https://git.eclipse.org/r/#/c/34585/ is another example in which we make it harder for our contributor to contribute because of the existing whitespace issues. I suggest we activate the save actions on the plug-ins and fix existing issues.
Comment 1 Lars Vogel CLA 2014-11-03 14:31:02 EST
Code cleanup for org.eclipse.ui.tests.rcp: https://git.eclipse.org/r/35840
Activate the save actiosn for it:
Comment 2 Lars Vogel CLA 2014-11-03 14:31:33 EST
Acivate the save actions for org.eclipse.ui.tests.rcp: https://git.eclipse.org/r/35841
Comment 3 Lars Vogel CLA 2014-11-03 14:33:21 EST
(In reply to Lars Vogel from comment #1)
> Code cleanup for org.eclipse.ui.tests.rcp: https://git.eclipse.org/r/35840
> Activate the save actiosn for it:

Merged with http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=9d46fd25916443921db384831f085f1d7c892005
Comment 4 Lars Vogel CLA 2014-11-03 14:34:07 EST
(In reply to Lars Vogel from comment #2)
> Acivate the save actions for org.eclipse.ui.tests.rcp:
> https://git.eclipse.org/r/35841

Merged with http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=e96cc52795c7b2ad66ae15455bfe2ca398ea222c
Comment 5 Lars Vogel CLA 2014-11-03 14:40:31 EST
Remove whitespace in org.eclipse.ui.tests: https://git.eclipse.org/r/#/c/35843/
Activate the save actions for org.eclipse.ui.tests: https://git.eclipse.org/r/35844
Comment 6 Lars Vogel CLA 2014-11-04 17:47:58 EST
(In reply to Lars Vogel from comment #5)
> Remove whitespace in org.eclipse.ui.tests:
> https://git.eclipse.org/r/#/c/35843/
> Activate the save actions for org.eclipse.ui.tests:
> https://git.eclipse.org/r/35844

Merged with git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=c7a74830a5ca9d4f853e16b703eb3b34580cc816 and http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=813ea0c5da684b7a8be2c0a84f61276b18bb1950
Comment 7 Markus Keller CLA 2014-11-13 08:32:42 EST
I just had to use Show Annotations on /org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/ExportArchiveFileOperationTest.java

Commit c7a74830a5ca9d4f853e16b703eb3b34580cc816 uses this bug's title
"Bug 449736 - [Tests] Solve whitespace issues in org.eclipse.ui.tests
plug-ins", but it
- doesn't solve whitespace issues (crappy indents with spaces are still there)
- performs other code changes to use enhanced for-loops, blocks in if-statements, etc.

For me, such commits only make the situation worse:
- From now on, Show Annotations always causes more work.
- The commit message says looks like it's only about whitespace changes, so I assume this commit cannot introduce any functional changes. While we try hard to make clean-ups semantically-preserving, we're not able to guarantee that. So the commit message effectively lies.
- If you do such large-scale commits, then at least make sure they're actually doing the job, so that they don't have to be followed-up with even more commits that make the history hard to read.
Comment 8 Markus Keller CLA 2014-11-13 08:38:18 EST
(In reply to Markus Keller from comment #7)
Just to be clear: You can't fix these issues any more, but please avoid them in the future.
Comment 9 Lars Vogel CLA 2014-11-13 09:00:10 EST
(In reply to Markus Keller from comment #7) 
> For me, such commits only make the situation worse:

- doesn't solve whitespace issues (crappy indents with spaces are still there)

I used the JDT clean up actions to remove tailing whitespace. Is their anther JDT option to cleanup the remaining whitespace issues. In Gerrit I have only seen trailing whitespace issues with contributions.

- performs other code changes to use enhanced for-loops, blocks in if-statements, etc.

That should not have been the case, sorry for this. I typically try to do really focused changes and mixing whitespace changes and other cleanup work is something I strongly try to avoid. Sorry https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=c7a74830a5ca9d4f853e16b703eb3b34580cc816 was clearly wrongly done.

> - From now on, Show Annotations always causes more work.

Are you aware that the whitespace changes can be ignored in EGit for the blame annotations? To enable this select Preferences > Team > Git, Ignore whitespace changes.
Comment 12 Lars Vogel CLA 2015-01-05 10:12:23 EST
Removed whitespace from org.eclipse.jface.tests.databinding with https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=ae182780e6f26414e097f5945baebe7fc3824f64
Comment 13 Lars Vogel CLA 2015-01-19 13:22:41 EST
org.eclipse.ui.tests.navigator https://git.eclipse.org/r/39888
Comment 15 Eclipse Genie CLA 2015-03-09 06:10:59 EDT
New Gerrit change created: https://git.eclipse.org/r/43397
Comment 17 Eclipse Genie CLA 2015-03-10 05:40:18 EDT
New Gerrit change created: https://git.eclipse.org/r/43507
Comment 18 Eclipse Genie CLA 2015-03-10 05:41:43 EDT
New Gerrit change created: https://git.eclipse.org/r/43508
Comment 19 Eclipse Genie CLA 2015-03-10 05:42:45 EDT
New Gerrit change created: https://git.eclipse.org/r/43509
Comment 20 Eclipse Genie CLA 2015-03-10 05:43:37 EDT
New Gerrit change created: https://git.eclipse.org/r/43510
Comment 21 Eclipse Genie CLA 2015-03-10 05:44:39 EDT
New Gerrit change created: https://git.eclipse.org/r/43512
Comment 22 Eclipse Genie CLA 2015-03-10 05:45:21 EDT
New Gerrit change created: https://git.eclipse.org/r/43513
Comment 23 Eclipse Genie CLA 2015-03-10 05:46:23 EDT
New Gerrit change created: https://git.eclipse.org/r/43514
Comment 24 Eclipse Genie CLA 2015-03-10 05:47:35 EDT
New Gerrit change created: https://git.eclipse.org/r/43515
Comment 25 Eclipse Genie CLA 2015-03-10 05:48:27 EDT
New Gerrit change created: https://git.eclipse.org/r/43516
Comment 26 Eclipse Genie CLA 2015-03-10 05:49:39 EDT
New Gerrit change created: https://git.eclipse.org/r/43517
Comment 27 Eclipse Genie CLA 2015-03-10 05:50:51 EDT
New Gerrit change created: https://git.eclipse.org/r/43518
Comment 39 Lars Vogel CLA 2015-03-10 05:55:26 EDT
.
Comment 40 Lars Vogel CLA 2015-03-16 13:28:48 EDT
Verified in Git. Lots of whitespace cleanup actions, if we missed something we use new bug reports.