Skip to content

Commit

Permalink
add .editorconfig to set coding style
Browse files Browse the repository at this point in the history
To maintain consistent code style between contributors and simplify merging, the solution should provide a .editorconfig to set some basic rules (already used by the current code source).

- use UTF-8
- use Tab to indent (as defined in https://github.com/LIS/LISAv2/blob/master/Documents/How-to-use.md)
- trim trailing white-space
- add a new line at the end of files for bash scripts.

References:
- microsoft/calculator#225
- https://editorconfig.org/
  • Loading branch information
chvalean authored and ader1990 committed Apr 11, 2019
1 parent ed4f73d commit e307998
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# top-most EditorConfig file
root = true

[*]
# 4 tabs indentation
indent_style = tab
indent_size = 4
# Set default charset
charset = utf-8
# remove any whitespace characters preceding newline characters
trim_trailing_whitespace = true

[*.{sh}]
# ensure file ends with a newline when saving
insert_final_newline = true

0 comments on commit e307998

Please sign in to comment.