Repository navigation
Closed
Description
In Eclipse Che I'm trying to adapt Google Java Style Guide eclipse-che/che#5772
As a part of this issue, I want to reformat all our codebase with google-java-format tool.
One of the issues I have is how EPL license looks like after formatting.
Before https://eclipse.org/legal/copyrightandlicensenotice.php
/*******************************************************************************
* Copyright (c) 2012-2017 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
After
/**
* ***************************************************************************** Copyright (c)
* 2012-2017 Codenvy, S.A. All rights reserved. This program and the accompanying materials are made
* available under the terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*
* <p>Contributors: Codenvy, S.A. - initial API and implementation
* *****************************************************************************
Can you suggest me a better way to put result closer to the original?
I have two ideas for now.
- Just skip javadoc formatting. Need to wait for Add flag for skipping javadoc formatting #149
- Put
<br>at the end of each line.
/**
* *****************************************************************************<br>
* Copyright (c) 2012-2017 Codenvy, S.A.<br>
* All rights reserved. This program and the accompanying materials<br>
* are made available under the terms of the Eclipse Public License v1.0<br>
* which accompanies this distribution, and is available at<br>
* http://www.eclipse.org/legal/epl-v10.html<br>
*
* <p>Contributors:<br>
* Codenvy, S.A. - initial API and implementation<br>
* *****************************************************************************
*/
3. Try to move license from javadoc to comment.
Reacted by Oliver Kopp
Metadata
Metadata
Assignees
Labels
No labels
Activity
cushon commentedon Jul 26, 2017
Is changing the license header style an option?
/*******************************************************************************is technically the beginning of a javadoc comment. It might be better to use:or perhaps:
skabashnyuk commentedon Jul 27, 2017
Yes. And Eclipse IP(intellectual property) team just confirm that.