felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filippo Diotalevi (JIRA)" <j...@apache.org>
Subject [jira] Updated: (FELIX-1406) eclipse code format template does not match existing code
Date Thu, 17 Sep 2009 09:42:57 GMT

     [ https://issues.apache.org/jira/browse/FELIX-1406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Filippo Diotalevi updated FELIX-1406:
-------------------------------------

    Attachment: ApacheFelixEclipseTemplate.xml

I attached an improved version of the Eclipse formatting template.

I uploaded it also in the wiki and made it available for download at 
http://cwiki.apache.org/confluence/display/FELIX/Coding+Standards

(direct link is
http://cwiki.apache.org/confluence/download/attachments/19425/ApacheFelixEclipseTemplate.xml?version=1
)

Please check it and close the bug if satisfied.

> eclipse code format template does not match existing code
> ---------------------------------------------------------
>
>                 Key: FELIX-1406
>                 URL: https://issues.apache.org/jira/browse/FELIX-1406
>             Project: Felix
>          Issue Type: Bug
>          Components: Documentation
>            Reporter: Derek Baum
>            Priority: Minor
>         Attachments: ApacheFelixEclipseTemplate.xml
>
>
> The eclipse code format template http://felix.apache.org/site/coding-standards.data/ApacheFelixCodingStandards.xml
> generates slightly different white space and blank line formatting than existing felix
code.
> Specifically:
> 1. spaces are inserted after the opening paren and before the closing paren in declarations
and method calls:
> int method1( String arg1 )
> {
>     if ( expr )
>     {
>         method1( arg1 );
>     }
> }
> The felix coding standards document http://felix.apache.org/site/coding-standards.html
does not specifically specify these spaces,
> but all the examples show code formatted without them.
> 2. two blank lines are inserted after package statement and between method declarations
> This actually agrees with the eclipse template, but the code I was reformatting (gogo)
only had one blank line.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message