Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Missing eclipse code formatter

  1. #1
    Join Date
    May 2007
    Posts
    157

    Default Missing eclipse code formatter

    On http://www.springframework.org/development in Code Conventions paragraph a reference ("available below") is made to an Eclipse code formatter but it is not available there.

  2. #2
    Join Date
    Jul 2005
    Location
    Helsingborg, Sweden
    Posts
    504

    Default

    Still not there, it seems.
    Ulrik Sandberg
    Jayway (www.jayway.com)
    Spring LDAP project member

  3. #3
    Join Date
    Jul 2008
    Posts
    4

    Default Re: Missing Eclipse code formatter

    If you are looking for the plugin itself, it can be found here:

    h t t p : / / w w w.eclipseplugincentral.com/Web_Links-index-req-viewlink-cid-432.htm

    I've also logged an internal JIRA issue to bring the issue to the webmaster's attention.
    quis custodiet ipsos custodes? -- Juvenal VI, 347-8

  4. #4
    Join Date
    Jul 2005
    Location
    Helsingborg, Sweden
    Posts
    504

    Default

    Well, no, I'm just looking for the code formatter template; an xml file that seems to have been lost in the site upgrade. On the springframework.org/development page, it says:

    "An Eclipse IDE code formatter profile for Spring is available below."

    However, I can't find it anywhere "below".
    Last edited by ulsa; Sep 4th, 2008 at 11:29 AM.
    Ulrik Sandberg
    Jayway (www.jayway.com)
    Spring LDAP project member

  5. #5
    Join Date
    Sep 2008
    Posts
    1

    Default Still no formatting conventions?

    Are there any updates/news on where to find the formatting conventions you are referring to?

  6. #6
    Join Date
    Mar 2008
    Posts
    79

    Default Missing eclipse code formatter (found)

    Thanks for pointing this out. I've tracked down the missing formatter file (XML) and re-posted it on the development page.

    Here is the direct URL: http://static.springframework.org/sp...onventions.xml

    Adam

  7. #7

    Default

    Hey - there is indeed a code formatter there, but unfortunately formatting classes from spring-web (for example) introduced changes - presumably, the formatter should not change anything in there.
    Any idea where the uptodate formatter is kept?
    Thanks.
    Eugen.

  8. #8
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,640

    Default

    Hey!

    I checked this with the Spring core framework team and they don't use auto-formatting for their sources. Therefore changes can happen when you apply an auto-formatter to these sources.

    HTH,
    Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

  9. #9

    Default

    OK, thanks for the feedback.
    The reason I was asking is that it's not easy to create a pull request and make sure that everything is actually formatted according to the rules of the project is there is no way to actually check the rules of the project.
    Also, I saw that there was indeed a formatter being used at one point (not to long ago) - is there a reason why it's not being used any more or will it come back?
    Thanks.
    Eugen.

  10. #10
    Join Date
    Apr 2007
    Posts
    307

    Default

    Hi Eugen,

    Indeed, when putting together a pull request, just do your best to follow convention with the code around the code you're changing. For various reasons, we don't use automatic formatting and any attempt to use one will definitely create unintended diffs.

    Thanks!

    - Chris
    Chris Beams
    Spring Framework committer, VMware
    http://github.com/cbeams

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •