Edgewall Software
Modify

Opened 8 years ago

Last modified 8 years ago

#12243 new enhancement

Consider adding an EditorConfig file

Reported by: anonymous Owned by:
Priority: normal Milestone: unscheduled
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

See http://editorconfig.org/

If an .editorconfig file is added in the project, various editors would automatically use the appropriate configuration for file necoding, line endings, indentation etc.

For example in trunk/.editorconfig:

# See http://EditorConfig.org

root = true

[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8

[*.py]
indent_style = space
indent_size = 4

[*.{js,html,yml}]
indent_style = space
indent_size = 2

[*.css]
indent_style = space
indent_size = 1

[Makefile]
indent_style = tab

Attachments (0)

Change History (3)

comment:1 by Jun Omae, 8 years ago

I suggest to close as wontfix. We need native for the end_of_line option. However, the option should set to one of "lf", "cr", or "crlf". See http://editorconfig.org/#supported-properties.

$ svn proplist -v setup.py
Properties on 'setup.py':
  svn:eol-style
    native
  svn:executable
    *

comment:2 by anonymous, 8 years ago

Ah, bummer.

Looks like that is discussed in https://github.com/editorconfig/editorconfig/issues/226 as a possible addition.

comment:3 by Ryan J Ollos, 8 years ago

Milestone: unscheduled

We could leave the ticket open and add the .editorconfig if issue 226 is resolved. Are there any objections besides the issue noted in comment:1?

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.