Bug 449736

Summary: [Tests] Solve whitespace issues in org.eclipse.ui.tests plug-ins
Product: [Eclipse Project] Platform Reporter: Lars Vogel <Lars.Vogel>
Component: UIAssignee: Lars Vogel <Lars.Vogel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel.rolka, daniel_megert, Lars.Vogel, loskutov, markus.kell.r, simon.scholz, thibaultleouay
Version: 4.5Keywords: bugday
Target Milestone: 4.5 M6   
Hardware: PC   
OS: All   
See Also: https://git.eclipse.org/r/43397
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=b35d5f83e44cf0c48f230217aba59b4fd219a212
https://git.eclipse.org/r/43507
https://git.eclipse.org/r/43508
https://git.eclipse.org/r/43509
https://git.eclipse.org/r/43510
https://git.eclipse.org/r/43512
https://git.eclipse.org/r/43513
https://git.eclipse.org/r/43514
https://git.eclipse.org/r/43515
https://git.eclipse.org/r/43516
https://git.eclipse.org/r/43517
https://git.eclipse.org/r/43518
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=92dfc26d552c54e9f2fb32b2b79721ac7cfa25a1
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=6b7496223a0f5d16e5e22d3e223584ba8289cbd5
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=2dc02579e98767634204f6000df7a48e3e98c574
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=6044ae4f8078b017d1b2b0621d8f816a26cd0166
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=08131dfad251299fa4182deee016f450b5316315
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=d20e0fe0210bd47d843be1ed0489609d09d2330b
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=80649a009dfb21accee082ecbdcd117460b6720d
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=9ab5e5216430b8847f9c25e11c31afbc3521d5d0
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=a85f5faa2038ea8ffcf2b849c211f3830ec55ca4
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=0237d50794697de4535ed16e566e0270942cab6e
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=2b460e507e33085537b72a69b9c27c6203ff3523
Whiteboard:

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.