ENH: add an editorconfig file for IDE code formatting
Summary
Add a generic editor config file to OTB sources to facilitate IDE code formatting. editorconfig is a generic tool with plugins for a number of IDEs.
See http://editorconfig.org/#overview
Rationale
It should facilitate code formatting of otb sources. I've tested the emacs plugin which works well.
Implementation Details
Classes and files
Give an overview of the implementation: main changes made to classes, files and modules. Do not paste complete diff, as it is available in the merge request already.
Applications
Describe any changes made to existing applications, or new applications that have been added.
Tests
Describe the testing strategy for new features.
Documentation
List or link documentation modifications that were made (doxygen, example, Software Guide, application documentation, CookBook).
Additional notes
List remaining open issues if any, and additional notes.
Copyright
The copyright owner is CNES and has signed the ORFEO ToolBox Contributor License Agreement
Merge request reports
Activity
The one from ITK could be used as a starting point: https://github.com/InsightSoftwareConsortium/ITK/blame/master/.editorconfig
@jinglada : FYI, if you want you've right to vote for merge requests (thumb up) at the top of the merge request:
https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/blob/develop/CONTRIBUTING.md#merge-request
ITK also has a
clang-format
configuration file which tries to replicate the Whitesmiths indent style. I'm not sure how well it works (I think I've tried it before and wasn't impressed), but it might be worth dropping into the repository root (it gets picked up automatically).added 1 commit
- 0b6268cd - ENH: Copy ITK clang-format configuration file in the repository root
done in 0b6268cd
added patch label
added 132 commits
-
0b6268cd...4bac53c4 - 131 commits from branch
develop
- 21224154 - Merge branch 'develop' into add_editorconfig
-
0b6268cd...4bac53c4 - 131 commits from branch
mentioned in commit 64983845
added feature label