[wp-trac] [WordPress Trac] #26429: Introduce .editorconfig to WordPress

WordPress Trac noreply at wordpress.org
Thu Dec 5 10:08:10 UTC 2013


#26429: Introduce .editorconfig to WordPress
-------------------------+------------------------------
 Reporter:  netweb       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Build Tools  |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by netweb):

 Replying to [comment:1 TobiasBg]:
 > The patch has a comment for JS at the end, but no rules?
 It is more of a placeholder for now per the JavaScript comment in the
 original ticket.

 Replying to [comment:1 TobiasBg]:
 > And out of curiosity: What's the benefit of `insert_final_newline`?
 It ensures that the last line of a file has a control character at the end
 of the code, see https://en.wikipedia.org/wiki/Newline

 If you look at 'most' WordPress PHP/CSS files in a text editor you will
 see that they do have this new line at the end of the file, you won't see
 it browsing Trac though. The addition of this to the .editorconfig ensures
 this is the case for contributions.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26429#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list