•  
      request #9701 Add root editorconfig
    Infos
    #9701
    Joris MASSON (jmasson)
    2016-12-06 18:30
    2016-12-06 16:51
    9975
    Details
    Add root editorconfig
    EditorConfig is a dotfile that enables automatically setting text file options such as "space or tab indentation", "indentation size", etc.
    In Tuleap, we use most of the time 4 spaces, except on .tab files for example. This means that if you set your editor with a basic setting of 4 spaces, you will get an error after editing a .tab file because the editor will have inserted spaces instead of tabs.
    EditorConfig lets you define such configuration based on file extension and even filename.
    It is automatically recognized by many text editors and IDE, and there are plugins for most editors.

    We have used it for some time in angular apps and a few newer plugins. We should set a base file at the root of the project and only add sub-configurations where needed. E.g. angular apps which use bower.json or package.json files, which can be automatically generated and enforce 2 spaces.
    Empty
    Empty
    Empty
    • [ ] enhancement
    • [x] internal improvement
    Empty
    Stage
    Joris MASSON (jmasson4)
    Closed
    2016-12-06
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Tuleap 9.1.99.89

    • Status changed from Under implementation to Closed
    • Connected artifacts
    • Close date set to 2016-12-06